public override string Visit() { if (left == null && right == null) { return(Name); } else if (right == null) { return($"{left.Visit()},{Name}"); } else { return($"{left.Visit()},{Name},{right.Visit()}"); } }
public override string Visit() { if (left == null && right == null) { return(Name); } else if (right == null) { return($"{left.Visit()},{Name}"); } else { return($"{left.Visit()},{Name},{right.Visit()}"); } }