Method Parse
Parse(string, bool)
Gets the enumeration value parsed from the specified string.
Declaration
public static T Parse(string s, bool ignoreCase = false)
Parameters
Type | Name | Description |
---|---|---|
string | s | The string to be parsed. |
bool | ignoreCase | true for case-insensitive or false for case-sensitive parsing. |
Returns
Type | Description |
---|---|
T |
Exceptions
Type | Condition |
---|---|
FormatException | Input string was not in a correct format. |