public void traverse(NTree <T> node, TreeVisitor <T> visitor) { visitor(node.data); foreach (NTree <T> child in node.children) { traverse(child, visitor); } }
public void addChild(NTree <T> node) { children.AddFirst(node); }