AVLNode<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, TKey key, TValue value, ref int change)
parameter description
root Node to add key/value pair to.
key Key used to index the value.
value Value to add to the node
change Balance change due to insertion.

See Also