EnumUtils.GetEnum<T>(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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