public static IList <T> GetValues <T>() { return(EnumUtils.GetValues(typeof(T)).Cast <T>().ToList <T>()); }
public static EnumValues <TUnderlyingType> GetNamesAndValues <TEnum, TUnderlyingType>() where TEnum : struct where TUnderlyingType : struct { return(EnumUtils.GetNamesAndValues <TUnderlyingType>(typeof(TEnum))); }
public static EnumValues <ulong> GetNamesAndValues <T>() where T : struct { return(EnumUtils.GetNamesAndValues <ulong>(typeof(T))); }
public static bool TryParse <T>(string enumMemberName, bool ignoreCase, out T value) where T : struct { ValidationUtils.ArgumentTypeIsEnum(typeof(T), "T"); return(MiscellaneousUtils.TryAction <T>(() => EnumUtils.Parse <T>(enumMemberName, ignoreCase), out value)); }
public static IList <string> GetNames <T>() { return(EnumUtils.GetNames(typeof(T))); }
public static T Parse <T>(string enumMemberName) where T : struct { return(EnumUtils.Parse <T>(enumMemberName, false)); }