Description
The Value
property of the GroupAttribute
class represents the name or identifier of the group to which a type or type member belongs. This property is used to categorize or group related members, which can be useful for organizing code and improving readability.
Usage
To use the Value
property, apply the GroupAttribute
to a class, method, or property, and specify the group name as a string. This helps in categorizing the member under a specific group, which can be useful for documentation or display purposes.
Example
// Example of using GroupAttribute with the Value property
[Group("Physics")]
public class PhysicsComponent : Component
{
// Class implementation
}
[Group("Rendering")]
public class RenderComponent : Component
{
// Class implementation
}