System.Collections.Generic.ICollection<T>.Count Property

Gets the number of elements contained in the ICollection`1.

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.

Requirements

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