// 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)); }
public static void PrintTree(AbstractNode root) { Console.WriteLine(root.print("", 0)); }