コード例 #1
0
 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");
     }
 }
コード例 #2
0
ファイル: RpcCallVisitor.cs プロジェクト: kevinmw/rpcsharp
 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");
 }