System.Collections.ICollection.Count Property

Gets the number of elements contained in the ICollection.

Syntax

public int Count { get; }

Value

A int that indicates the number of elements contained in the current instance.

Remarks

This property is read-only.

Operation

The ICollection.Count property is required to return the total number of elements contained in the current instance.

Requirements

Namespace: System.Collections
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0