Example #1
0
 public void Traverse(DNode <T> node, TreeTracker <T> tracker)
 {
     tracker(node.content);
     foreach (DNode <T> kid in node.children)
     {
         Traverse(kid, tracker);
     }
 }
Example #2
0
 private void MoveToPreviousSibbling(TreeTracker treeTracker)
 {
     treeTracker?.MoveToPreviousSibling();
 }
Example #3
0
 private void MoveToNextSibbling(TreeTracker treeTracker)
 {
     treeTracker?.MoveToNextSibling();
 }
Example #4
0
 private void MoveToLastChild(TreeTracker treeTracker)
 {
     treeTracker?.MoveToLastChild();
 }
Example #5
0
 private void MoveToParent(TreeTracker treeTracker)
 {
     treeTracker?.MoveToParent();
 }