AdaTheDev AdaTheDev - 2 months ago 17
C# Question

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?

Answer

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

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

EDIT: But you can vote for it at Visual Studio's UserVoice!

Comments