public override string ToString() { StringBuilder sb = new StringBuilder(); bool addParentheses = Condition.particles.First().Operation == Constructor.dbOpe.Qry; string strCondition = (addParentheses ? "( " : "") + Condition.ToString() + (addParentheses ? " )" : ""); sb.AppendLine("IF " + strCondition + " BEGIN"); sb.AppendLine(TruePart.ToString()); sb.Append("END"); if (FalsePart != null) { sb.AppendLine(); sb.AppendLine("THEN BEGIN"); sb.AppendLine(FalsePart.ToString()); sb.Append("END"); } return(sb.ToString()); }
public override string ToString() { return(Test.ToString() + " (" + TruePart.ToString() + ", " + FalsePart.ToString() + ")"); }