Method TryPredecessor
TryPredecessor(K, out KeyValuePair<K, V>)
Find the entry in the dictionary whose key is the predecessor of the specified key.
Declaration
public bool TryPredecessor(K key, out KeyValuePair<K, V> res)
Parameters
Type | Name | Description |
---|---|---|
K | key | The key |
KeyValuePair<K, V> | res | The predecessor, if any |
Returns
Type | Description |
---|---|
System.Boolean | True if key has a predecessor |