Top "Expression-trees" questions

Expression Trees are an abstract representation of code in a tree structure where each node of the tree represents a programming construct (conditional, assignment, method call, etc.

Serialize expression tree

I'm doing a distributed system in c# and have encountered a barrier. I need to be able to serialize Predicate …

c# serialization lambda expression-trees
Create fully dynamic where clause with expression tree and execute on IQueryable

At point (3) in my code I have defined a query called query1 in which I defined a .Where lambda expression. …

c# lambda expression-trees iqueryable where
Viewing the IL code generated from a compiled expression

Is it possible to view the IL code generated when you call Compile() on an Expression tree? Consider this very …

c# expression-trees il .net-reflector
Understanding Expression.Invoke() Method

I've been understanding PredicateBuilder extension methods written Joseph Albahari and I saw this Expression.Invoke and honestly I couldn't understand …

c# expression-trees
Performance of expression trees

My current understanding is that 'hard coded' code like this: public int Add(int x, int y) {return x + y;} …

c# .net performance expression-trees
Creating dynamic expression for entity framework

I've created a generic expression builder that builds up a predicate based on collection of conditions. I pass the predicate …

c# entity-framework expression-trees dynamic-linq
How to get the value of a ConstantExpression which uses a local variable?

I created an ExpressionVisitor implementation that overrides VisitConstant. However, when I create an expression that utilizes a local variable I …

c# c#-4.0 expression-trees
Expression of type 'System.DateTime' cannot be used for return type 'System.Object'

I've created an expression that I'm using for sorting which works fine, until I hit a DateTime field, where I …

c# linq expression-trees expression
Mutating the expression tree of a predicate to target another type

Intro In the application I 'm currently working on, there are two kinds of each business object: the "ActiveRecord" kind …

c# linq lambda expression-trees
Why would I want to use an ExpressionVisitor?

I know from the MSDN's article about How to: Modify Expression Trees what an ExpressionVisitor is supposed to do. It …

c# expression-trees expressionvisitor