List<int> a = new List<int>(1, 2, 3);
List<int> b = new List<int>(1, 2, 3);
Dictionary<List<int>, int>> map = new Dictionary<List<int>, int>>();
map.Add(a, a.Sum());
int aSum = map[b];
HashSet<int> a = new HashSet<int>(1, 2, 3);
HashSet<int> b = new HashSet<int>(1, 2, 3);
Dictionary<HashSet<int>, int>> map1 = new Dictionary<HashSet<int>, int>>();
map1.Add(a, a.Sum());
int aSum = map1[b];
HashSet<int> a = new HashSet<int>(1, 2, 3);
HashSet<int> b = new HashSet<int>(1, 2, 3);
Dictionary<HashSet<int>, int>> map2 = new Dictionary<HashSet<int>, int>>
(HashSet<int>.CreateSetComparer());
map2.Add(a, a.Sum());
int aSum = map2[b];
Amy b source
share