Xeno-rat
Loading...
Searching...
No Matches
NAudio.Utils.FieldDescriptionHelper Class Reference

Helper to get descriptions. More...

Collaboration diagram for NAudio.Utils.FieldDescriptionHelper:

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.
 

Detailed Description

Helper to get descriptions.

Member Function Documentation

◆ Describe()

static string NAudio.Utils.FieldDescriptionHelper.Describe ( Type t,
Guid guid )
inlinestatic

Describes the specified type and GUID by retrieving the description from the FieldDescriptionAttribute associated with the matching static public field.

Parameters
tThe type to be described.
guidThe GUID used to identify the field.
Returns
The description associated with the matching field, or the name of the field if no description is found, or the string representation of the GUID if no matching field is found.

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.

Here is the caller graph for this function:

The documentation for this class was generated from the following file: