| RankedMapTKey, TValueKeyCollectionGetCount Method |
Returns the number of elements with the supplied key in the map.
Namespace:
Kaos.Collections
Assembly:
KaosCollections (in KaosCollections.dll) Version: 4.2.0.0
Syntax public int GetCount(
TKey key
)
Parameters
- key
- Type: TKey
The key to return the number of occurrences for.
Return Value
Type:
Int32The number of elements with the supplied key.
Remarks
This is a O(log n) operation
where n is Count.
Examples
The below snippet is part of a larger example of the
RankedMapTKey, TValueclass.
if (fmt.Keys.GetCount ("sln") > 1)
fmt.Add ("sln", "Visual Studio Version Selector");
See Also