System.Collections.Generic.List<T>.Count Property
Gets the number of elements contained in the current instance.

Syntax

public int Count { get; }

Value

The number of elements 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