Click or drag to resize
Accord.NET (logo)

RedBlackTreeDictionaryTKey, TValueGetPrevious Method

Gets the next key-value pair in the dictionary whose key is the immediate ancestor of the given key.

Namespace:  Accord.Collections
Assembly:  Accord (in Accord.dll) Version: 3.8.0
Syntax
public KeyValuePair<TKey, TValue> GetPrevious(
	TKey key
)
Request Example View Source

Parameters

key
Type: TKey
The key whose ancestor must be found.

Return Value

Type: KeyValuePairTKey, TValue
The key-value pair whose key is the immediate ancestor of key.
See Also