Data type for storing object pair other than Dictionary in C#

c#, c#-5.0

Solution

I think a `List<Tuple<T1,T2>>` would work best here.

- `List<T>`

- `Tuple<T1,T2>`

Problem

What would be the best data type for storing non-unique pairs of objects? I cannot use Dictionary because the key has to be unique. I could create an object with the two data types as properties and store them in a list, but that wouldn't be flexible enough to accommodate the different data type pairs. Something almost like Dictionary but non-unique. A build-in solution from .NET would be even better.

Original source