private static void Main(string[] args) { var data = new TreeData("Top Node"); data.Top.Children.Add(new TreeDataNode("1a")); var middleChild = new TreeDataNode("1b"); data.Top.Children.Add(middleChild); data.Top.Children.Add(new TreeDataNode("1c")); middleChild.Children.Add(new TreeDataNode("2a")); middleChild.Children.Add(new TreeDataNode("2b")); Debugger.Break(); }
public TreeData(string topData) { Top = new TreeDataNode(topData); }