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