Xeno-rat
|
Helper to get descriptions. More...
Static Public Member Functions | |
static string | Describe (Type t, Guid guid) |
Describes the specified type and GUID by retrieving the description from the FieldDescriptionAttribute associated with the matching static public field. | |
Helper to get descriptions.
|
inlinestatic |
Describes the specified type and GUID by retrieving the description from the FieldDescriptionAttribute associated with the matching static public field.
t | The type to be described. |
guid | The GUID used to identify the field. |
This method searches for a static public field within the specified type that matches the provided GUID. If a matching field is found, it retrieves the description from the associated FieldDescriptionAttribute, if present, and returns it. If no description is found, it returns the name of the field. If no matching field is found, it returns the string representation of the provided GUID.