Allowing Lambda Expressions with Statement Bodies Describing Iterators to be Converted to Expression Trees #3094
Unanswered
AdamSobieski
asked this question in
Language Ideas
Replies: 1 comment
-
This falls under #158. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Building on issue #3093, I would like to open an issue for discussing allowing lambda expressions with statement bodies describing iterators to be able to be converted to expression trees in C#.
It would be quite useful if the System.Linq.Expressions expression tree model could represent the iterator pattern and if the
Compile()
method could, at runtime, generate iterators.Pertinent to this issue are CS0834 (a lambda expression with a statement body cannot be converted to an expression tree) and CS1621 (the yield statement cannot be used inside an anonymous method or lambda expression).
Beta Was this translation helpful? Give feedback.
All reactions