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)); } }
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}")); }