Method TryGetValue
TryGetValue<T>(string, out T)
Tries find a property of a key and cast its value to type T.
Declaration
bool TryGetValue<T>(string key, out T value)
Parameters
Type | Name | Description |
---|---|---|
string | key | Property key |
T | value | Resulting value |
Returns
Type | Description |
---|---|
bool | True if the property was found and successfully cast to type T. False otherwise. |
Type Parameters
Name | Description |
---|---|
T | Desired target type |