Example #1
0
 public void Traverse(BinaryTreeElement element)
 {
     if (element.HasNext())
     {
         Traverse(element.Left);
         Traverse(element.Right);
     }
     else
     {
         this.MatchCollection.Add(element);
         return;
     }
 }
Example #2
0
 public void Separate(BinaryTreeElement element)
 {
     if (element.HasNext())
     {
         Separate(element.Left);
         Separate(element.Right);
     }
     else
     {
         this.MatchCollection.Add(element);
         return;
     }
 }