Class HelperEnum
OptimaJet.Workflow.Core.Helpers.HelperEnum
Namespace: OptimaJet.Workflow.Core.Helpers
public static class HelperEnumInheritance
- System.Object
Methods
public static bool IsEnumType<TEnum>() where TEnum : struct #Returns
Type
Description
Booleanpublic static bool IsEnumType(Type enumType) #Parameters
Name
Type
Description
enumTypeTypeReturns
Type
Description
Booleanpublic static bool Contains<TEnum>(string value, bool Exeption = true) where TEnum : struct #Parameters
Name
Type
Description
valueStringExeptionBooleanReturns
Type
Description
Booleanpublic static bool Contains(Type enumType, string value, bool Exeption = true) #Parameters
Name
Type
Description
enumTypeTypevalueStringExeptionBooleanReturns
Type
Description
Booleanpublic static string GetName<TEnum>(TEnum value) where TEnum : struct #Parameters
Name
Type
Description
value{TEnum}Returns
Type
Description
Stringpublic static string GetName<TEnum>(Type enumType, TEnum value) where TEnum : struct #Parameters
Name
Type
Description
enumTypeTypevalue{TEnum}Returns
Type
Description
Stringpublic static string Name(this Enum enumType) #Parameters
Name
Type
Description
enumTypeEnumReturns
Type
Description
Stringpublic static string UpperName(this Enum enumType) #Parameters
Name
Type
Description
enumTypeEnumReturns
Type
Description
Stringpublic static List<string> GetNames<TEnum>(bool Exeption = true) where TEnum : struct #Parameters
Name
Type
Description
ExeptionBooleanReturns
Type
Description
List<String>public static List<string> GetNames(Type enumType, bool Exeption = true) #Parameters
Name
Type
Description
enumTypeTypeExeptionBooleanReturns
Type
Description
List<String>public static List<string> GetNames<TEnum>(List<TEnum> enumValues, bool Exeption = true) where TEnum : struct #Parameters
Name
Type
Description
enumValuesList<TEnum>ExeptionBooleanReturns
Type
Description
List<String>public static List<TEnum> GetValues<TEnum>(bool Exeption = true) where TEnum : struct #Parameters
Name
Type
Description
ExeptionBooleanReturns
Type
Description
List<TEnum>public static List<TEnum> GetValues<TEnum>(Type enumType, bool Exeption = true) where TEnum : struct #Parameters
Name
Type
Description
enumTypeTypeExeptionBooleanReturns
Type
Description
List<TEnum>public static List<TEnum> GetValuesWithoutDefault<TEnum>(bool Exeption = true, TEnum defaultValue = default) where TEnum : struct #Parameters
Name
Type
Description
ExeptionBooleandefaultValue{TEnum}Returns
Type
Description
List<TEnum>public static bool ValidateEnumInDictionary<TEnum, TValue>(IDictionary<TEnum, TValue> dictionary, bool withExceptions, out List<string> notExists) where TEnum : struct #Parameters
Name
Type
Description
dictionaryIDictionary<{TEnum},{TValue>withExceptionsBooleannotExistsList<String>Returns
Type
Description
Booleanpublic static List<TEnum> GetValuesWithout<TEnum>(List<TEnum> excludedElements, bool withoutDefault, bool Exeption = true) where TEnum : struct #Parameters
Name
Type
Description
excludedElementsList<TEnum>withoutDefaultBooleanExeptionBooleanReturns
Type
Description
List<TEnum>public static List<string> GetNamesWithout<TEnum>(List<TEnum> excludedElements, bool withoutDefault, bool Exeption = true) where TEnum : struct #Parameters
Name
Type
Description
excludedElementsList<TEnum>withoutDefaultBooleanExeptionBooleanReturns
Type
Description
List<String>public static List<string> GetNamesWithoutDefault<TEnum>(bool Exeption = true, TEnum defaultValue = default) where TEnum : struct #Parameters
Name
Type
Description
ExeptionBooleandefaultValue{TEnum}Returns
Type
Description
List<String>public static TEnum GetValue<TEnum>(string value, bool ignoreCase = true, bool Exeption = true) where TEnum : struct #Parameters
Name
Type
Description
valueStringignoreCaseBooleanExeptionBooleanReturns
Type
Description
{TEnum}public static bool TryGetValue<TEnum>(string value, out TEnum result, bool ignoreCase = true, bool Exeption = true) where TEnum : struct #Parameters
Name
Type
Description
valueStringresult{TEnum}ignoreCaseBooleanExeptionBooleanReturns
Type
Description
Booleanpublic static List<DropdownValue> ToDropdownList<TEnum>(bool withoutDefault, TEnum defaultValue = default) where TEnum : struct #Parameters
Name
Type
Description
withoutDefaultBooleandefaultValue{TEnum}Returns
Type
Description
List<DropdownValue>public static List<DropdownValue> ToDropdownListWithout<TEnum>(List<TEnum> values, bool withoutDefault) where TEnum : struct #Parameters
Name
Type
Description
valuesList<TEnum>withoutDefaultBooleanReturns
Type
Description
List<DropdownValue>public static List<DropdownValue> ToDropdownList<TEnum>(List<TEnum> excludedElements, bool withoutDefault, TEnum defaultValue = default) where TEnum : struct #Parameters
Name
Type
Description
excludedElementsList<TEnum>withoutDefaultBooleandefaultValue{TEnum}Returns
Type
Description
List<DropdownValue>public static Dictionary<string, TEnum> ToDictionary<TEnum>(bool withoutDefault, TEnum defaultValue = default) where TEnum : struct #Parameters
Name
Type
Description
withoutDefaultBooleandefaultValue{TEnum}Returns
Type
Description
Dictionary<String,{TEnum>public static string GetDescription<TEnum>(TEnum value) where TEnum : struct #Parameters
Name
Type
Description
value{TEnum}Returns
Type
Description
Stringpublic static string Description(this Enum enumType) #Parameters
Name
Type
Description
enumTypeEnumReturns
Type
Description
String