Example #1
0
 /// <summary>
 /// Empties the tree
 /// </summary>
 public override void Purge()
 {
     mKey   = null;
     mLeft  = null;
     mRight = null;
 }
Example #2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="mKey"></param>
 /// <param name="mLeft"></param>
 /// <param name="mRight"></param>
 public BinaryTree(object mKey, BinaryTree mLeft, BinaryTree mRight)
 {
     this.mKey   = mKey;
     this.mLeft  = mLeft;
     this.mRight = mRight;
 }