Updated Question Further Down
I\'ve been experimenting with expression trees in .NET 4 to generate code at runtime and I\'ve been trying to implement th
Sorry if this is thread necromancy, but in case other people are running into the same or similar problem:
You can try to write an ExpressionVisitor that replaces a parameter with the same name and type in the external body expression with the variable parameter you have declared when creating the block expression. That way the parameter in the body will be the same object as the parameter in the block declaration and so the LambdaExpression should compile.