예제 #1
0
        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());
        }
예제 #2
0
 public override string ToString()
 {
     return(Test.ToString() + " (" + TruePart.ToString() + ", " + FalsePart.ToString() + ")");
 }