Compartilhar via


StringExtensions.GetEnumFromDisplayName<T>(String) Method

Definition

Gets the enum value based on the given enum type and display name.

public static T GetEnumFromDisplayName<T> (this string displayName);
static member GetEnumFromDisplayName : string -> 'T
<Extension()>
Public Function GetEnumFromDisplayName(Of T) (displayName As String) As T

Type Parameters

T

Parameters

displayName
String

The display name.

Returns

T

Applies to