Class EnumExtensions
Inheritance
EnumExtensions
Assembly: Radzen.Blazor.dll
Syntax
public static class EnumExtensions
Methods
EnumAsKeyValuePair(Type, Func<string, string>)
Converts Enum to IEnumerable of Value/Text.
Declaration
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.
Declaration
public static string GetAutoCompleteValue(this AutoCompleteType typeValue)
Parameters
Returns
Type |
Description |
string |
The autocomplete attribute string value.
|
GetDisplayDescription(Enum, Func<string, string>)
Declaration
public static string GetDisplayDescription(this Enum enumValue, Func<string, string> translationFunction = null)
Parameters
Returns