Click here to Skip to main content
15,886,110 members
Articles / Programming Languages / C#

ListDictionary: An Improved OrderedDictionary

Rate me:
Please Sign up or sign in to vote.
5.00/5 (7 votes)
19 May 2020CPOL1 min read 9.1K   110   8  
ListDictionary provided Dictionary-like functionality with ordered enumeration
Some of my column data in CSV was out of column name order. Enumerating the data Dictionary as KeyValuePair did not return data in any particular order, and using System.Collection.Specialized's OrderedDictionary was cumbersome. So, I created my own orderly dictionary called ListDictionary which is discussed in this tip.

Views

Daily Counts

Downloads

Weekly Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
United States United States
Michael Balloni is a manager of software development at a cybersecurity software and services provider.

Check out https://www.michaelballoni.com for all the programming fun he's done over the years.

He has been developing software since 1994, back when Mosaic was the web browser of choice. IE 4.0 changed the world, and Michael rode that wave for five years at a .com that was a cloud storage system before the term "cloud" meant anything. He moved on to a medical imaging gig for seven years, working up and down the architecture of a million-lines-code C++ system.

Michael has been at his current cybersecurity gig since then, making his way into management. He still loves to code, so he sneaks in as much as he can at work and at home.

Comments and Discussions