dictionary class : Count getter

Description

Gets the number of key/value pairs that contained in the dictionary.

Syntax

dictionaryInstance.Count

Arguments

None

Return value

ClassDescription
intThe 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.

Links for reference

Copyright © Rice All rights reserved.