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
keystringThe key.
valueTThe value if it exists.
Returns
- bool
trueif the value exists,falseotherwise.
Type Parameters
TThe type to cast the value to.