Method GetName
GetName<T>(T)
Gets the first enumeration name with the given value.
Declaration
public static string GetName<T>(this T value) where T : unmanaged, Enum
Parameters
Type | Name | Description |
---|---|---|
T | value | The enumeration value. |
Returns
Type | Description |
---|---|
string |
Type Parameters
Name | Description |
---|---|
T |
Exceptions
Type | Condition |
---|---|
MissingMemberException | An enumeration with the specified value was not found. |