Click or drag to resize

OrderedDictionaryTKey, TValueEnsureCapacity Method

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

Namespace: GSF.Collections
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.218-beta+101eee949414e414795e55a6e73d88938f0177b8
Syntax
public int EnsureCapacity(
	int capacity
)
View Source

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
ExceptionCondition
ArgumentOutOfRangeExceptioncapacity is less than 0.
See Also