A int containing the number of elements the current instance can contain.
Type Reason ArgumentOutOfRangeException Attempt to set the capacity to a value less than List<T>.Count.
This property is read/write.
List<T>.Capacity is the number of elements that the list is capable of storing without needing to be extended. List<T>.Count is the number of elements that are actually in the list.
List<T>.Capacity is always greater than or equal to List<T>.Count. When List<T>.Count exceeds List<T>.Capacity while adding elements, the capacity is increased.
The capacity can be decreased by calling List<T>.TrimToSize or by setting the List<T>.Capacity property explicitly.