Class EnumExtensions
Class EnumExtensions.
public static class EnumExtensions
- Inheritance
-
EnumExtensions
- Inherited Members
Methods
EnumAsKeyValuePair(Type, Func<string, string>)
Converts Enum to IEnumerable of Value/Text.
public static IEnumerable<object> EnumAsKeyValuePair(Type enumType, Func<string, string> translationFunction = null)
Parameters
Returns
GetAutoCompleteValue(AutoCompleteType)
Converts the autocomplete type enum value to the expected autocomplete attribute value.
public static string GetAutoCompleteValue(this AutoCompleteType typeValue)
Parameters
typeValue
AutoCompleteType
Returns
- string
The autocomplete attribute string value.
GetDisplayDescription(Enum, Func<string, string>)
Gets enum description.
public static string GetDisplayDescription(this Enum enumValue, Func<string, string> translationFunction = null)