PROPERTY

List<T>.Capacity

Reports allocated element capacity, which is at least Count.

Formal Syntax & Structure

csharp syntaxcsharp
items.Capacity

Working Example

Example Snippetcsharp
var items = new System.Collections.Generic.List<int>(8); int capacity = items.Capacity;
C# & .NET Reference