示例#1
0
 public Node Find(int value)
 {
     if (value == Data)
     {
         return(this);
     }
     else if (value < Data && LeftNode != null)
     {
         return(LeftNode.Find(value));
     }
     else if (RightNode != null)
     {
         return(RightNode.Find(value));
     }
     else
     {
         return(null);
     }
 }