System.Collections.Generic.Dictionary<TKey,TValue>.Count Property
Gets the number of key/value pairs contained in the dictionary.

Syntax

public int Count { get; }

Value

The number of key/value pairs contained in the dictionary.

Remarks

This property is read-only.

Retrieving the value of this property is an O(1) operation.

Requirements

Namespace: System.Collections.Generic
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0