Method EnsureCapacity
EnsureCapacity(int)
Ensures that this map can hold up to a specified number of entries without any further expansion of its backing storage.
Declaration
public int EnsureCapacity(int capacity)
Parameters
Type | Name | Description |
---|---|---|
int | capacity | The number of entries. |
Returns
Type | Description |
---|---|
int |
Exceptions
Type | Condition |
---|---|
ArgumentOutOfRangeException | Capacity specified is less than 0. |