Class EnumExtensions
Extensions for Enum type objects.
public static class EnumExtensions
- Inheritance
-
EnumExtensions
Methods
EnumMemberValue(Enum)
Converts an Enum to the value defined in its EnumMemberAttribute.
public static string EnumMemberValue(this Enum enumValue)
Parameters
enumValue
EnumThe enum value.
Returns
- string
The value.
Exceptions
- NotImplementedException
Thrown if an EnumMemberAttribute could not be found on the enum value.