Click or drag to resize

RankedDictionaryTKey, TValueElementAt Method

Gets the key/value pair at the supplied index.

Namespace:  Kaos.Collections
Assembly:  KaosCollections (in KaosCollections.dll) Version: 4.2.0.0
Syntax
C#
public KeyValuePair<TKey, TValue> ElementAt(
	int index
)

Parameters

index
Type: SystemInt32
The zero-based index of the element to get.

Return Value

Type: KeyValuePairTKey, TValue
The element at index.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionWhen index is less than zero or greater than or equal to the number of keys.
Remarks
This is a O(log n) operation.
See Also