Parses the specified string.
public static T Parse<T>(string value)
where T : struct, Enum
parameter | description |
---|---|
T | The enumerated value type. |
value | The string. |
A strongly typed enumerated value.
This method matches case.
Parses the specified string.
public static T Parse<T>(string value, CaseSensitivity caseSensitivity)
where T : struct, Enum
parameter | description |
---|---|
T | The enumerated value type. |
value | The string. |
caseSensitivity | The case sensitivity. |
A strongly typed enumerated value.