Example #1
0
        public void Add(TData element)
        {
            RedBlackNode <TData, int> node = new RedBlackNode <TData, int>(element, 0);

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