Method TryGetValue
- Namespace
- DisCatSharp.Common
- Assembly
- DisCatSharp.Common.dll
TryGetValue(string, out TValue?)
Attempts to retrieve a value corresponding to the supplied key from this dictionary.
public bool TryGetValue(string key, out TValue? value)
Parameters
key
stringKey to retrieve the value for.
value
TValueRetrieved value.
Returns
- bool
Whether the operation was successful.
TryGetValue(ReadOnlySpan<char>, out TValue?)
Attempts to retrieve a value corresponding to the supplied key from this dictionary.
public bool TryGetValue(ReadOnlySpan<char> key, out TValue? value)
Parameters
key
ReadOnlySpan<char>Key to retrieve the value for.
value
TValueRetrieved value.
Returns
- bool
Whether the operation was successful.