Add another ToLookup overload #78469
Unanswered
zms9110750
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
ILookup is similar to IGrouping.
However, ILookup is not IEnumerable. It will cache data and will not query multiple times.
IGrouping to ILookup requires two meaningless SelectMany and ToLookup. It looks strange.
Add a ToLookup overload with constraints. Only when the source is IGrouping, you can convert IGrouping to ILookup.
Beta Was this translation helpful? Give feedback.
All reactions