Method TryGetValue
TryGetValue<TResult>(string, out TResult?)
Gets the value associated with the specified key and casts it into TResult.
public bool TryGetValue<TResult>(string key, out TResult? value)
Parameters
keystringThe key whose to get.
valueTResultWhen this method returns, the value associated with the specified key, if the key is found; otherwise, the default value for the type of the value parameter. This parameter is passed uninitialized.
Returns
- bool
true if the object is find with the specified key; otherwise, false.
Type Parameters
TResultThe type which will be casted into.
English
Русский
Português
Español
Deutsch
中文 (简体)
日本語