Method GetValue
GetValue(string, bool)
Gets the enumeration value with the given name.
Declaration
public static T GetValue(string name, bool ignoreCase = false)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The name of the enumeration value. |
| bool | ignoreCase | true for case-insensitive or false for case-sensitive parsing. |
Returns
| Type | Description |
|---|---|
| T |
Exceptions
| Type | Condition |
|---|---|
| MissingMemberException | An enumeration with the specified name was not found. |