Is there an alternative to Dictionary/SortedList that allows duplicates?

Posted by ssg on Stack Overflow See other posts from Stack Overflow or by ssg
Published on 2009-02-16T00:18:21Z Indexed on 2010/05/20 8:20 UTC
Read the original article Hit count: 206

Filed under:

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".

© Stack Overflow or respective owner

Related posts about .NET