| RankedDictionaryTKey, TValueTryGetValue Method |
Gets the value associated with the supplied key.
Namespace:
Kaos.Collections
Assembly:
KaosCollections (in KaosCollections.dll) Version: 4.2.0.0
Syntax Exceptions Remarks This is a O(log n) operation.
Examples
The below snippet is part of a larger example of the
RankedDictionaryTKey, TValueclass.
if (cc.TryGetValue ("ZZ", out string value))
Console.WriteLine ($"For key = 'ZZ', value = {value}.");
else
Console.WriteLine ("Key = 'ZZ' is not found.");
See Also