title: Delete an object from a tree
body: <p>I have a Find function in order to find an element from a BST</p>
  
  <pre><code> private Node Find(ref Node n, int e)
          {
              if (n == null)
                  return null;
  
              if (n.Element == e)
                  return n;
              if (e &gt; n.Element)
                  return Find(ref n.Right, e);
              else
                  return Find(ref n.Left, e);
          }
  </code></pre>
  
  <p>and I use following code in order to get a node and then set this node to null.</p>
  
  <pre><code>Node x = bsTree.Find(1);
              x = null;
              bsTree.Print();
  </code></pre>
  
  <p>supposedly, this node should be deleted from Tree as it is set to null but it still exists in tree.</p>
  
  <p>I had done this before but this time missing something and no idea what. </p>