public void Print(TreeElement root) { if (root != null) { root.PrintElement(); } }
public void PrintElement() { if (left != null) { left.PrintElement(); } Console.WriteLine(content); if (right != null) { right.PrintElement(); } }