public static Operator createOperator(string type)
 {
     Operator op = null;
     switch (type)
     {
         case "+":
             op=  new operatorAdd();
             break;
         case "-":
             op =  new operatorSub();
             break;
         case "*":
             op =  new operatorMul();
             break;
         case "/":
             op =  new operatorDiv();
             break;
     }
     return op;
 }
        public static Operator createOperator(string type)
        {
            Operator op = null;

            switch (type)
            {
            case "+":
                op = new operatorAdd();
                break;

            case "-":
                op = new operatorSub();
                break;

            case "*":
                op = new operatorMul();
                break;

            case "/":
                op = new operatorDiv();
                break;
            }
            return(op);
        }