Is there a generic version of the OrderedDictionary class?
Despite being useful, there isn't a generic implementation of the OrderedDictionary class in .NET 3.5.
Why?
The reason for this lack of implementation is not explicitly provided by Microsoft.
Are there any existing implementations?
Yes, there are implementations available to provide the desired functionality:
Custom Implementation:
Code snippets are provided for a custom implementation of a generic OrderedDictionary class, including the interface, implementation, helper classes, unit tests, and usage examples.
Is it part of .NET 4.0?
No, the generic implementation of OrderedDictionary is not part of .NET 4.0 or any later versions of the framework.
The above is the detailed content of Is There a Generic OrderedDictionary in .NET?. For more information, please follow other related articles on the PHP Chinese website!