Skip to content

EnumEx ​

Kind: Static class

Namespace: CrowdControl.Common

Public Static Functions

bool

TryGetAttribute<T>(Enum enumValue, T out value)

bool

TryGetDescription(Enum enumValue, string out value)

string

GetFriendlyName(Enum enumValue)

ImmutableArray

GetNames<T>()

ImmutableArray

GetValues<T>()

string

GetName<T>(T value)

string

GetNameSlow<T>(T value, bool includeObsolete = true)

IEnumerable

GetFlags<T>(T value, bool includeZero = false)

bool

IsObsolete<T>(string name)

bool

IsObsolete<T>(T value)

string

ToCamelCase(Enum value)

T

NextValue<T>(T value)

TAttribute

GetAttribute<TEnum, TAttribute>(TEnum enumVal)

Gets an attribute on an enum field value.

TAttribute

GetAttribute<TAttribute>(Enum enumVal)

Gets an attribute on an enum field value.

bool

TryConvert<TEnum, TResult>(TEnum value, TResult out result)