Example #1
0
 public override string ToString()
 {
     if (Alternate == null)
     {
         return(string.Format(
                    "if({0}){1}",
                    Test.ToString(),
                    Consequent.ToString()
                    ));
     }
     return(string.Format(
                "if({0}){1} else {2}",
                Test.ToString(),
                Consequent.ToString(),
                Alternate.ToString()
                ));
 }
 public override string ToString() => Condition.ToString() + " ? " + Consequent.ToString() + " : " + Alternative.ToString();