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

EnumUtils

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

public static TEnumType GetMaximumValue<TEnumType>(Type enumType) where TEnumType : IConvertible, IComparable<TEnumType>

Gets the maximum valid value of an Enum type. Flags enums are ORed.

public static IList<string> GetNames<T>()

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<TEnum, TUnderlyingType>() where TEnum : struct where TUnderlyingType : 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<T> GetValues<T>()

public static IList<object> GetValues(Type enumType)

public static T Parse<T>(string enumMemberName) where T : struct

Parses the specified enum member name, returning it's value.

public static T Parse<T>(string enumMemberName, bool ignoreCase) where T : struct

Parses the specified enum member name, returning it's value.

public static bool TryParse<T>(string enumMemberName, bool ignoreCase, out T value) where T : struct