Question

I'm wondering what steps the (v3+) compiler takes to build LINQ expressions for methods that take an expression argument. In particular, does the compiler use, or share logic with, LeafExpressionConverter? (That could require first generating an Expr then converting it.) If there is a separate mechanism, is anything done to ensure parity with LeafExpressionConverter?

Was it helpful?

Solution

Yes, I believe that it uses LeafExpressionConverter.QuotationToLambdaExpression. Search for quote_to_linq_lambda_info in the open source compiler code base.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top