Click or drag to resize

RankedDictionaryTKey, TValueTryGetLessThanOrEqual Method

Gets the element with the greatest key less than or equal to the supplied key.

Namespace:  Kaos.Collections
Assembly:  KaosCollections (in KaosCollections.dll) Version: 4.2.0.0
Syntax
C#
public bool TryGetLessThanOrEqual(
	TKey getKey,
	out KeyValuePair<TKey, TValue> keyValuePair
)

Parameters

getKey
Type: TKey
The key to use for comparison.
keyValuePair
Type: System.Collections.GenericKeyValuePairTKey, TValue
The actual element if found; otherwise contains defaults.

Return Value

Type: Boolean
true if element with key less than or equal to getKey is found; otherwise false.
See Also