<PackageReference Include="Newtonsoft.Json" Version="6.0.2" />

EnumUtils

static class EnumUtils
public static IList<T> GetFlagsValues<T>(T value) where T : struct

public static IList<string> GetNames(Type enumType)

public static EnumValues<ulong> GetNamesAndValues<T>() where T : struct

Gets a dictionary of the names and values of an Enum type.

public static EnumValues<TUnderlyingType> GetNamesAndValues<TUnderlyingType>(Type enumType) where TUnderlyingType : struct

Gets a dictionary of the names and values of an Enum type.

public static IList<object> GetValues(Type enumType)