.net – n alternative to Dictionary/SortedList that allows duplicates?

dictionarymultimapnetpriority-queue

Possible Duplicate:
C# Sortable collection which allows duplicate keys

Basically I'd like to make a Dictionary work with duplicate keys without going into custom comparer implementations. There is an idea of:

  Dictionary<key, List<value>>

but it still has some overhead. I wish Dictionary had "AllowDuplicates".

Best Answer

If you're using .NET 3.5 then Lookup is probably what you're after.