Table of Contents

Class EnumExtensions

Namespace
Radzen.Blazor
Assembly
Radzen.Blazor.dll

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

enumType Type
translationFunction Func<string, string>

Returns

IEnumerable<object>

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)

Parameters

enumValue Enum
translationFunction Func<string, string>

Returns

string