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.

Lambda to Expression tree conversion

I will keep it really simple, How do I get expression tree out of lambda?? or from query expression ?

c# lambda expression-trees
How to use Expression to build an Anonymous Type?

In C# 3.0 you can use Expression to create a class with the following syntax: var exp = Expression.New(typeof(MyClass)); …

c# linq expression-trees anonymous-types
Expression Trees and Invoking a Delegate

So I have a delegate which points to some function which I don't actually know about when I first create …

c# .net lambda delegates expression-trees
C# switch in lambda expression

Is it possible to have a switch in a lambda expression? If not, why? Resharper displays it as an error.

c# lambda expression-trees switch-statement
C#: An item with the same key has already been added, when compiling expression

Ok, here's a tricky one. Hopefully there is an expression guru here who can spot what I am doing wrong …

c# exception lambda expression expression-trees
LINQ expressions. Variable 'p' of type referenced from scope, but it is not defined

I'm building a LINQ query dynamically with this code. It seems to work, but when i have more than one …

c# linq expression-trees
Try-catch every line of code without individual try-catch blocks

I do not currently have this issue, but you never know, and thought experiments are always fun. Ignoring the obvious …

c# try-catch expression-trees
How set value a property selector Expression<Func<T,TResult>>

i need associate a entity property Address in my Person class entity with expressions linq in my FactoryEntities class using …

c# linq expression-trees
Calling a Generic Method using Lambda Expressions (and a Type only known at runtime)

You can use Lambda Expression Objects to represent a lambda as an expression. How do you create a Lambda Expression …

c# generics lambda expression expression-trees
Expression to create an instance with object initializer

Is there any way to create an instance of an object with object initializer with an Expression Tree? I mean …

c# dynamic lambda expression expression-trees