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