public AggregateResultOperator(MethodCallExpressionParseInfo parseInfo, Expression optionalSeed, LambdaExpression accumulator, LambdaExpression optionalSelector)
 {
     ParseInfo = parseInfo;
     OptionalSeed = optionalSeed;
     Accumulator = accumulator;
     OptionalSelector = optionalSelector;
 }
        public AggregateExpressionNode(MethodCallExpressionParseInfo parseInfo, Expression arg1, Expression arg2, LambdaExpression optionalSelector) : base(parseInfo, null, optionalSelector)
        {
            ParseInfo = parseInfo;

            if (arg2 != null)
            {
                OptionalSeed = arg1;
                Accumulator = (LambdaExpression) arg2;
            }
            else
            {
                Accumulator = (LambdaExpression) arg1;
            }

            OptionalSelector = optionalSelector;
        }
示例#3
0
 public CacheableResultOperator(MethodCallExpressionParseInfo parseInfo, ConstantExpression data)
 {
     ParseInfo = parseInfo;
     Data = data;
 }
示例#4
0
 public CacheableExpressionNode(MethodCallExpressionParseInfo parseInfo, ConstantExpression data) : base(parseInfo, null, null)
 {
     _parseInfo = parseInfo;
     _data = data;
 }