public IOperator GetOperator(OperatorCommandType command) { switch (command) { case OperatorCommandType.PLUS: return(new Plus()); case OperatorCommandType.MINUS: return(new Minus()); case OperatorCommandType.MULTIPLY: return(new Multiply()); case OperatorCommandType.DIVIDE: return(new Divide()); case OperatorCommandType.ROOT: return(new Root()); case OperatorCommandType.POWER: return(new Power()); case OperatorCommandType.EQUALS: return(new Equals()); default: throw new InvalidOperationException(); } }
public IOperator GetOperator(OperatorCommandType command) { throw new NotImplementedException(); }