예제 #1
0
        SelectionModelBuilder(Expression X, params SelectionFacet[] facets)
        {
            this.facets = facets.ToList();
            var visitor = new LinqExpressionVisitor();

            visitor.MethodCallExpressionTraversed += Traversed;
            visitor.BinaryExpressionTraversed     += Traversed;
            visitor.ConstantExpressionTraversed   += Traversed;
            visitor.Visit(X);
        }
예제 #2
0
        static void Parse <T>(Expression <Predicate <T> > p)
        {
            var visitor = new LinqExpressionVisitor();

            visitor.Visit(p);
        }