Declaration
public static T? TryParse<T>(
string value,
bool ignoreCase
)Summary
Finds the enum value corresponding to the specified string.
Generic type parameters
| T |
The enum type from which to retrieve the value. |
Parameters
| string | value |
A string containing the name or value to convert. |
| bool | ignoreCase |
If true, ignore case; otherwise, regard case. |
Returns
The value if it was successfully converted; null otherwise.