public void Add(TData element) { RedBlackNode <TData, int> node = new RedBlackNode <TData, int>(element, 0); this._tree.InsertNode(node); }
public RedBlackNode <TKey, TData>[] ToArray() { RedBlackNode <TKey, TData>[] res = new RedBlackNode <TKey, TData> [_Count]; ToArrayAux(res, this, 0, _Count - 1); return(res); }