RedBlackTree<TKey,TValue>.Add method

Adds a node to the tree.

public override void Add(TKey key, TValue data)
parameter description
data Data to be contained at the new node location.
key Key used for comparison and lookup.

Exceptions

exception condition
ArgumentNullException Thrown if data is null.
ArgumentException Thrown if data already exists in the tree.
ArgumentException Thrown if key is not of type IComparable.

See Also