dictionary class : Count getter
Description
Gets the number of key/value pairs that contained in the dictionary.
Syntax
dictionaryInstance.Count
Arguments
None
Return value
Class | Description |
int | The number of key/value pairs that contained in the dictionary. |
Sample code
//anyDictionary is a instance of dictionary type.
int number = anyDictionary.Count;
Notes
It's a wrapper of the System.Collections.Generic.Dictionary<TKey, TValue>.Count.