EnumType
Provides reflection helpers for enum types.
public static TAttribute GetCustomAttribute<TEnum, TAttribute>(this TEnum value) where TEnum : struct, Enum where TAttribute : Attribute
Gets custom attribute associated with the specified enum value.
public static IEnumerable<TAttribute> GetCustomAttributes<TEnum, TAttribute>(this TEnum value) where TEnum : struct, Enum where TAttribute : Attribute
Gets custom attributes associayed with the specified enum value.