DotNext by .NET Foundation and Contributors

<PackageReference Include="DotNext" Version="4.0.0-beta.3" />

 EnumType

public static class 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.