Esempio n. 1
0
        public ElementMatchNode(Expression path, Expression innerExpression)
        {
            var method =
                typeof(Enumerable).GetMethods()
                .Single(mi => mi.Name == "Any" && mi.GetParameters().Length == 2)
                .MakeGenericMethod(QueryParser.GetEnumerableType(path));

            _expression = Expression.Call(method, path, innerExpression);
        }