public OpExpression(Priority priority, string op, Expression left, Expression right = null) { _priority = priority; _op = op; _left = left as IEvaluatesToString; if (_left == null) { throw new InvalidExpressionInRpcCallException(left, "Unsupported expression"); } _right = right as IEvaluatesToString; if (_right == null && right != null) { throw new InvalidExpressionInRpcCallException(right, "Unsupported expression"); } }
public OpExpression(Priority priority, string op, Expression left, Expression right=null) { _priority = priority; _op = op; _left = left as IEvaluatesToString; if (_left == null) throw new InvalidExpressionInRpcCallException(left, "Unsupported expression"); _right = right as IEvaluatesToString; if (_right == null && right !=null) throw new InvalidExpressionInRpcCallException(right, "Unsupported expression"); }