Example #1
0
 private static void Traverse(ListTree <T> node, Func <T, bool> action)
 {
     if (action(node.data))
     {
         return;
     }
     foreach (ListTree <T> child in node.children)
     {
         Traverse(child, action);
     }
 }
Example #2
0
 public bool RemoveChildNode(ListTree <T> child)
 {
     return(children.Remove(child));
 }