I'm attempting to generate code by building a lambda expression and compiling it using the methods defined in the System.Linq.Expressions namespace. I've run into some very odd behavior and I was wondering if someone could shed some light on the problem. I'm attempting to create an expression like this one programmatically using the Expression API: Action compiled = x0 => new Action(x1 => Do(() => this.DoSomething(x1)))(x0); Assume I've defined a parameterless Action delegate, a Do method, and a
Read More...