Single Key Multiple Values Data Structure for one to many mapping
- by nijhawan.saurabh
Dictionaries are good, they are great to store Key / Value pairs
but what if you want to store multiple values for a single key?
Dictionaries would not allow duplicate keys.
I came across a nice way
to represent such a Data Structure using one of the Extension Method (ToLookup) present
in System.Linq Namespace which converts an…