Click or drag to resize

RankedMapTKey, TValueElementsBetween Method

Returns an enumerator that iterates over a range with the supplied bounds.

Namespace:  Kaos.Collections
Assembly:  KaosCollections (in KaosCollections.dll) Version: 4.2.0.0
Syntax
C#
public IEnumerable<KeyValuePair<TKey, TValue>> ElementsBetween(
	TKey lower,
	TKey upper
)

Parameters

lower
Type: TKey
Minimum key of the range.
upper
Type: TKey
Maximum key of the range.

Return Value

Type: IEnumerableKeyValuePairTKey, TValue
An enumerator for the specified range.
Exceptions
ExceptionCondition
InvalidOperationExceptionWhen the map was modified after the enumerator was created.
Remarks

If either lower or upper are present in the map, they will be included in the results.

Retrieving the first element is a O(log n) operation. Retrieving subsequent elements is a O(1) operation per element.

See Also