Search code examples
c#.netgenerics.net-4.0ordereddictionary

No generic implementation of OrderedDictionary?


There doesn't appear to be a generic implementation of OrderedDictionary (which is in the System.Collections.Specialized namespace) in .NET 3.5. Is there one that I'm missing?

I've found implementations out there to provide the functionality, but wondered if/why there isn't a generic implementation out-of-the-box and if anyone knows whether it's something in .NET 4.0?


Solution

  • You're right. There's no generic equivalent of OrderedDictionary in the framework itself.

    (That's still the case for .NET 4 too, as far as I'm aware.)