Converts Enum to IEnumerable of Value/Text.
Declaration
public static IEnumerable<object> EnumAsKeyValuePair(Type enumType, Func<string, string> translationFunction)
Parameters
Returns
Converts Enum to IEnumerable of Value/Text.
Declaration
public static IEnumerable<object> EnumAsKeyValuePair(Type enumType, Func<Enum, string> valueTranslationFunction, Func<string, string> textTranslationFunction)
Parameters
Returns
Converts the autocomplete type enum value to the expected autocomplete attribute value.
Declaration
public static string GetAutoCompleteValue(AutoCompleteType typeValue)
Parameters
Returns
Gets the display text for an enum value. Resolution order: GetDescription, then GetName, then Description, then ToString.
Declaration
public static string GetDisplayDescription(Enum enumValue, Func<string, string> translationFunction)
Parameters
Returns
Gets the display text for an enum value. Resolution order: GetDescription, then GetName, then Description, then ToString.
Declaration
public static string GetDisplayDescription(Enum enumValue, Func<Enum, string> valueTranslationFunction, Func<string, string> textTranslationFunction)
Parameters
Returns