Click or drag to resize
Accord.NET (logo)

RedBlackTreeDictionaryTKey, TValueTryGetNext Method

Gets the next key-value pair in the dictionary whose key is the immediate successor to the given key.

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

Parameters

key
Type: TKey
The key whose successor must be found.
next
Type: System.Collections.GenericKeyValuePairTKey, TValue
The key-value pair whose key is the immediate sucessor of key, returned as an out parameter.

Return Value

Type: Boolean
True if there was a successor in the dictionary; false otherwise.
See Also