Method TryGet
TryGet<T>(string, out T)
Tries to get the value that has the specified key in Properties and casts it to the specified type.
bool TryGet<T>(string key, out T value)
Parameters
key
stringThe key.
value
TThe value if it exists.
Returns
- bool
true
if the value exists,false
otherwise.
Type Parameters
T
The type to cast the value to.