Click or drag to resize

OrderedDictionaryTKey, TValueTrimExcess(Int32) Method

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

Namespace: GSF.Collections
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.244-beta+c33f622c070b2c1078a06bcb41bdeb4c19d19a0b
Syntax
public void TrimExcess(
	int capacity
)
View Source

Parameters

capacity  Int32
The number of elements that the OrderedDictionaryTKey, TValue must be able to contain.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptioncapacity is less than Count.
See Also