OrderedDictionaryTKey, TValueTrimExcess(Int32) Method

Sets the capacity of an OrderedDictionaryTKey, TValue object to the specified capacity, rounded up to a nearby, implementation-specific value.

Definition

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

Parameters

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

Exceptions

ArgumentOutOfRangeExceptioncapacity is less than Count.

See Also