void getChildren() { System.Console.WriteLine(this.ToString()); foreach(child Node in Nodes) { child.getChildren(); } }
Go(Node node) { if (!node) return; // do whatever you need to do with node Go(node.Sibling); Go(node.Child); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)