Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
✅ How do I merge a list of dictionaries based on keys using LINQ? - C#
C
C#
•
4y ago
•
16 replies
TheHelpfulHelper
✅ How do I merge a list of dictionaries based on keys using LINQ?
So if I have something like
:
[{ number: 1 }, { number: 2 }, { number: 3 }]
[{ number: 1 }, { number: 2 }, { number: 3 }]
I want to get
:
{ number: [1, 2, 3]}
{ number: [1, 2, 3]}
I allow duplicates
.
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Compare keys of dictionaries [Answered]
C
C# / help
4y ago
Converting a string to a list of objects using only LINQ.
C
C# / help
16mo ago
❔ How do I make part of a Linq query optional?
C
C# / help
4y ago
LINQ List A (list of strings) "partial" has any member of list B (list of strings)
C
C# / help
3y ago