public void RunLeftToRight() { if (LNode != null) { LNode.RunLeftToRight(); } Console.WriteLine(Data + " "); if (RNode != null) { RNode.RunLeftToRight(); } }
public void RunLeftToRight(List <string> theList) { if (LNode != null) { LNode.RunLeftToRight(theList); } theList.Add(Data.ToString()); Console.WriteLine(Data + " "); if (RNode != null) { RNode.RunLeftToRight(theList); } }