Method TryConvert
TryConvert(TValue, out TDerived)
Tries to get the enumeration member with the specified value.
Declaration
public static bool TryConvert(TValue value, out TDerived member)
Parameters
| Type | Name | Description |
|---|---|---|
| TValue | value | Value to search for. |
| TDerived | member | Receives the found enumeration member instance on success, or, if not found, the default for the enumeration type. |
Returns
| Type | Description |
|---|---|
| Boolean | true, if a member with the given member was found, otherwise false. |