MultiDictionaryBaseTKey, TValueCountValues Method |
Gets a count of the number of values associated with a key. The
default implementation is slow; it enumerators all of the values
(using TryEnumerateValuesForKey) to count them. A derived class
may be able to supply a more efficient implementation.
Namespace: X3Platform.CollectionsAssembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntaxprotected virtual int CountValues(
TKey key
)
protected:
virtual int CountValues(
TKey key
)
Parameters
- key
- Type: TKey
The key to count values for.
Return Value
Type:
Int32The number of values associated with
key.
See Also