コード例 #1
0
 // Call this method to begin the tree printing process
 public void PrintTree(AbstractNode node, string prefix = "")
 {
     if (node == null)
     {
         return;
     }
     Console.WriteLine(node.print("", 0));
 }
コード例 #2
0
 public static void PrintTree(AbstractNode root)
 {
     Console.WriteLine(root.print("", 0));
 }