[Proposal]: LINQ function support for dynamic object #4407
Unanswered
qhc99
asked this question in
Language Ideas
Replies: 1 comment 2 replies
-
At runtime there is no way to know which extension methods were in scope, so the runtime binder would have no idea what |
Beta Was this translation helpful? Give feedback.
2 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.
Uh oh!
There was an error while loading. Please reload this page.
-
FEATURE_NAME
LINQ function support for dynamic object
Summary
LINQ function cannot be applied to dynamic object, which is contrary to intuition.
Motivation
congruent disign
Detailed design
Drawbacks
No drawback in semantics.
Alternatives
It seems that the only solution is type casting.
Answers from StackOverflow (https://stackoverflow.com/questions/18734996/how-to-use-linq-with-dynamic-collections/18735033) do not work in .Net 5.
Unresolved questions
Design meetings
Beta Was this translation helpful? Give feedback.
All reactions