LINQ in Action roller

Lambda Parameter not in scope

I'm trying to compose the first block of expression using expression trees. The second block compiles fine. But the third block generates a "Lambda Parameter not in scope" error. All 3 blocks generate the same expression "{(x, y) => Multiply(x, y)}". There seems to be some pre-condition in Expression.Multiply that checks whether the ParameterExpressions passed to it is in the list of expression passed to the lambda expression. I'm assuming the the call to Expression .Parameter( Read More...
Published Thursday, March 15, 2007 5:35 AM by MSDN Forums: LINQ Project General
Anonymous comments are disabled

Featured Item

This Blog

Sponsoring

Syndication