Exemplo n.º 1
0
        public bool Call(string method, LinqExpression expr)
        {
            Tuple <CallCounter, LinqExpression> methodCounter;

            if (counter.TryGetValue(method, out methodCounter))
            {
                return(CompareWithPrevious(methodCounter.Item1));
            }
            else
            {
                methodCounter   = Tuple.Create(new CallCounter(), expr);
                counter[method] = methodCounter;
                return(CompareWithPrevious(methodCounter.Item1));
            }
        }
Exemplo n.º 2
0
 public static Exception MergeMultiParameterLambda(LinqExpression node, LinqExpression innerExpr)
 {
     return(new NotSupportedException($"Cannot merge method '{node.Method.Method.Name}' in expression '{ExtensionReducer.Reduce(node)}': one or more lambda expressions reference multiple lambda parameters. {localSplit}"));
 }