EnumEx
Inherits object
Public Static Functions
bool
TryGetAttribute(this Enum enumValue, out T? value)
bool
TryGetDescription(this Enum enumValue, out string? value)
string
GetFriendlyName(this Enum enumValue)
IReadOnlyList
GetNames()
IReadOnlyList
GetValues()
string?
GetName(T value)
string?
GetNameSlow(this T value, bool includeObsolete)
IEnumerable
GetFlags(this T value, bool includeZero)
bool
IsObsolete(string name)
bool
IsObsolete(this T value)
string
ToCamelCase(this Enum value)
TAttribute?
GetAttribute(this TEnum enumVal)
Gets an attribute on an enum field value. The attribute of type TAttribute that exists on the enum value, or null if no attribute was found.
Private Attributes
ConcurrentDictionary
m_getAttributeMethods
