RedBlackNode<TKey,TValue>.Add method
Adds the given key and value to the tree at the current node.
public static void Add(ref Node<TKey, TValue> root, ref Node<TKey, TValue> parent, TKey key,
TValue value)
parameter | description |
---|---|
root | Node to add key/value pair to. |
parent | Parent node of root. |
key | Key used to index the value. |
value | Value to add to the node |
See Also
- class Node<TKey,TValue>
- class RedBlackNode<TKey,TValue>
- namespace TheCodingMonkey.Collections.BST