Is there a non-unique-key sorted list generic collection in C#?

Posted by kdt on Stack Overflow See other posts from Stack Overflow or by kdt
Published on 2009-11-17T09:54:27Z Indexed on 2010/03/13 16:35 UTC
Read the original article Hit count: 989

Filed under:
|
|

I'm a bit surprised by System.Collections.Generic.SortedList, in that

  1. It requires me to use <key, value> instead of <value>(comparer)
  2. It only allows on entry per value

These seem quirky in the way I want to use it (although I'm sure they're just right for other situations). Is there another collection that doesn't have these two characteristics?

© Stack Overflow or respective owner

Related posts about c#

Related posts about collections