System::Collections::Generic::List::set_Capacity method

List::set_Capacity method

Sets list capacity.

void System::Collections::Generic::List<T>::set_Capacity(int capacity)
ParameterTypeDescription
capacityintCapacity to set (can’t be less than current size).

See Also