Click here to Skip to main content
15,891,204 members
Articles / Programming Languages / C#

Using Collections as Keys in C#

Rate me:
Please Sign up or sign in to vote.
3.05/5 (5 votes)
9 Feb 2020MIT 9.6K   86   5  
Using IEqualityComparer to allow collections to be keys in dictionaries and hashsets
Using collections as keys allows for complex functional constructs to be expressed in C# more easily. This code provides two classes for doing ordered or unordered equality comparisons on collections so that they may be used as keys in dictionaries and sets.

Views

Daily Counts

Downloads

Weekly Counts

License

This article, along with any associated source code and files, is licensed under The MIT License


Written By
United States United States
Just a shiny lil monster. Casts spells in C++. Mostly harmless.

Comments and Discussions