Method Reserve
Reserve(int, bool)
Sets the total number of elements the internal data structure can hold without resizing.
Declaration
public void Reserve(int newCapacity, bool keepContent = false)
Parameters
Type | Name | Description |
---|---|---|
int | newCapacity | New capacity for the array. |
bool | keepContent | Set to true if you want the current content of the array to be kept. |