Stack<T>.Capacity Property

Definition

Gets the total numbers of elements the internal data structure can hold without resizing.

C#
public int Capacity { get; }

Property Value

Applies to

Product Versions
.NET 9