Click or drag to resize

EnumExtensions Class

Defines extension methods related to enumerations.
Inheritance Hierarchy
SystemObject
  GSFEnumExtensions

Namespace: GSF
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.205-beta+5ef4169f3b1079d8b163dd363614f656bd140924
Syntax
public static class EnumExtensions
View Source

The EnumExtensions type exposes the following members.

Methods
 NameDescription
Public Extension MethodGetDescription 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 MethodGetEnumValueByDescription Gets the enumeration of the specified type whose description matches this description.
Public Extension MethodGetEnumValueByName Gets the enumeration value with the specified name.
Public Extension MethodGetEnumValueOrDefault(Object, Type, Object) Gets the enumeration constant for value, if defined in the enumeration, or a default value.
Public Extension MethodGetEnumValueOrDefaultT(Object, Object) Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
Public Extension MethodGetFormattedName Retrieves a formatted name of the value that this Enum represents for visual display.
Top
See Also

Reference

GSF Namespace