EnumExtensions Methods
Last updated
Last updated
Returns the display name of an Enum from the Description attribute in the enum. E.g:
The display name string associated with the enum value. If the value has no Description attribute, null is returned.
Returns all flags that are set for a flagged enum value. E.g:
An IEnumerable<Enum> which enumerates all flags that are set in the input value.
Parameter
Description
value
Type: Enum The enum value on which the extension is called and for which the display name will be returned.
Parameter
Description
input
Type: Enum The enum value on which the extension is called and for which the flags will be returned.