Click or drag to resize

EnumExtensions Methods

The EnumExtensions type exposes the following members.

Methods
  Name Description
Public Extension Method GetDescription Retrieves the description of the value that this Enum represents extracted from the DescriptionAttribute, or the enumeration name if no description is available.
Public Extension Method GetEnumValueByDescription Gets the enumeration of the specified type whose description matches this description.
Public Extension Method GetEnumValueByName Gets the enumeration value with the specified name.
Public Extension Method GetEnumValueOrDefault(Object, Type, Object) Gets the enumeration constant for value, if defined in the enumeration, or a default value.
Public Extension Method GetEnumValueOrDefaultT(Object, Object) Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
Public Extension Method GetFormattedName Retrieves a formatted name of the value that this Enum represents for visual display.
Top
See Also