C# alternative for the C++ STL set<T>

c#, sorting

Solution

You can do this with A System.Collections.Generic.Dictionary. Here's a good article: Dictionarys and sorting

Edit: The SortedDictionary seems even better.

Problem

I'm looking for a sorted data structure, that will be similar to the STL set(T). I found SortedList, but it requires (key, val), I'm looking for something like List(string) - only sorted. I found on the web Spring.Collections, but my framework does not recognize it. Is there a simple SortedSet I could use in the regular basic framework? Thanks, Gal

Original source

Related problems