OrderedDictionaryTKey, TValueEnsureCapacity Method

Resizes the internal data structure if necessary to ensure no additional resizing to support the specified capacity.

Definition

Namespace: Gemstone.Collections
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.128 -- Release Build+d050cfc5563c89a1188cc3c6b2d417530856f490
public int EnsureCapacity(
	int capacity
)

Parameters

capacity  Int32
The number of elements that the OrderedDictionaryTKey, TValue must be able to contain.

Return Value

Int32
The capacity of the OrderedDictionaryTKey, TValue.

Exceptions

ArgumentOutOfRangeExceptioncapacity is less than 0.

See Also