Example #1
0
        protected static string esArithmeticOperatorToString(tgArithmeticOperator arithmeticOperator)
        {
            switch (arithmeticOperator)
            {
            case tgArithmeticOperator.Add: return(" + ");

            case tgArithmeticOperator.Subtract: return(" - ");

            case tgArithmeticOperator.Multiply: return(" * ");

            case tgArithmeticOperator.Divide: return(" / ");

            case tgArithmeticOperator.Modulo: return(" % ");

            default: return("");
            }
        }
Example #2
0
 protected static string esArithmeticOperatorToString(tgArithmeticOperator arithmeticOperator)
 {
     switch (arithmeticOperator)
     {
         case tgArithmeticOperator.Add: return " + ";
         case tgArithmeticOperator.Subtract: return " - ";
         case tgArithmeticOperator.Multiply: return " * ";
         case tgArithmeticOperator.Divide: return " / ";
         case tgArithmeticOperator.Modulo: return " % ";
         default: return "";
     }
 }