Properties.TryGet Method ​
Definition ​
Tries to get the value of a single valued property with the specified key.
c#
public bool TryGet<T>(string key, out T? value);Type Parameters ​
| Name | Description |
|---|---|
T | The type of the property. |
Parameters ​
| Name | Type | Description |
|---|---|---|
key | String | The key of the property. |
value | T | The value of the property if it exists. |
Returns ​
true if the property exists, false otherwise.