Click here to Skip to main content
15,885,366 members
Articles / Programming Languages / C#

ListDictionary, a sorted, type-safe .NET dictionary

11 Jul 2021CPOL 0  
Interested in a .NET dictionary class that maintains the order of key-value pairs added to it? Look no further!
Sometimes when working with a .NET Dictionary that you want to track the order of key-value pairs added to the dictionary. For example, if you are reading key-value pairs from a database, and you want to work with these in the order returned from the database, you could use SortedDictionary, but it's not type-safe, or you could use a separate list of keys, but what a hassle! How about a data structure that manages that separate list?
Only logged in members can view this content

Please go to the C# Table of Contents to view the list of available articles in this section.