Freigeben über


EnumUtils.GetEnum<T>(String) Method

Definition

Gets the enum of type T given the string equivalent.

public static T GetEnum<T> (string enumValue);
static member GetEnum : string -> 'T
Public Shared Function GetEnum(Of T) (enumValue As String) As T

Type Parameters

T

Type of the enum represented by the string

Parameters

enumValue
String

String to be parsed

Returns

T

Applies to