Produce an expression tree for method groups. #3519
Unanswered
bbarry
asked this question in
Language Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Suggesting this instead of commenting on #2545 because this shouldn't require any additional commitments from teams outside of the language team and should be completely compatible with existing expression tree usages.
Currently you can use method groups in place of lambda calls:
and it works for calls expecting a compatible delegate type.
It would be nice if you could do the same for locations where the compatible expression type is used and:
lowered to:
and then further lowered as this expression is today.
Beta Was this translation helpful? Give feedback.
All reactions