Description
The Group
field in the DisplayInfo
struct represents the group or category to which a type or member belongs. This categorization can be useful for organizing and displaying related types or members together in user interfaces or documentation. The field is of type System.String
and is publicly accessible, allowing it to be set or retrieved as needed.
Usage
To use the Group
field, you can directly access it from an instance of the DisplayInfo
struct. This field can be set to a string value that represents the desired category or group for the associated type or member.
Example
// Example of setting the Group field
DisplayInfo displayInfo = new DisplayInfo();
displayInfo.Group = "Physics";
// Example of retrieving the Group field
string groupCategory = displayInfo.Group;
// groupCategory now holds the value "Physics"