I am looking for something like a tree. We are constantly inserting into an already sorted collection. We would like access to the minimum and maximum value. We don’t need any keys, just the value. I couldn’t find any tree structures from .Net and I couldn’t see any thing else that looked like what I am looking for.
Share
In .NET 4.0 there’s SortedSet – it looks like that would do what you want, and it has
MinandMaxproperties..NET 3.5 has
HashSet, but that only deals with equality rather than ordering.