Set<T>.Ensure Capacity(Int32) Method
Ensures that this hash set can hold the specified number of elements without growing.
public: int EnsureCapacity(int capacity);
public int EnsureCapacity (int capacity);
member this.EnsureCapacity : int -> int
Public Function EnsureCapacity (capacity As Integer) As Integer
The minimum capacity to ensure.
The new capacity of this instance.
capacity is less than zero.