---
title: "Add Support for \"Set\" Collections to .NET"
url: "https://osherove.com/blog/2004/6/11/add-support-for-quotsetquot-collections-to-net.md"
canonical: "https://osherove.com/blog/2004/6/11/add-support-for-quotsetquot-collections-to-net.html"
published: "2004-06-11T04:10:00"
updated: "2004-06-11T04:10:00"
tags: [".Net Quotations", "Cool Articles"]
author: "Roy Osherove"
description: "One of the missing collection classes in .Net is one that's not as often used, but when you need it, boy, it's really missing, is the Set . You know - Set theory (”Group Theory”) and all, including Intesect, join and so…"
usage: "Licensed under CC BY 4.0 — reuse, quote and adapt with attribution (Roy Osherove, link to the original page)."
license: "https://creativecommons.org/licenses/by/4.0/"
---

# Add Support for "Set" Collections to .NET

By Roy Osherove June 11, 2004 In [.Net Quotations](https://osherove.com/blog/category/net-quotations), [Cool Articles](https://osherove.com/blog/category/cool-articles)

**Historical article** · Originally published June 11, 2004; technical details may be outdated.

One of the missing collection classes in .Net is one that's not as often used, but when you need it, boy, it's **really** missing, is the **Set**. You know - Set theory (”Group Theory”) and all, including Intesect, join and so on.

I found this really nice Set implementation library with Source over on CodeProject :

[http://www.codeproject.com/csharp/sets.asp](http://www.codeproject.com/csharp/sets.asp) 

You might also want to read the discussion at the bottom of the article, some nice points there.

Another link related to this is that someone created a more performance oriented variant of the Set - LargeListDictionary, on CodeProject, based on this article. It might come in Handly some day too:

[http://www.codeproject.com/useritems/LargeListDictionary.asp](http://www.codeproject.com/useritems/LargeListDictionary.asp)

(via win-tech-off-topc mailing list)

## More in .Net Quotations

[All posts in .Net Quotations](https://osherove.com/blog/category/net-quotations)

- Jul 17, 2004

    ### [Omer is doing some serious blogging](https://osherove.com/blog/2004/7/17/omer-is-doing-some-serious-blogging.html)

- Jul 11, 2004

    ### [An interesting Memory Leak problem.](https://osherove.com/blog/2004/7/11/an-interesting-memory-leak-problem.html)

- Jun 4, 2004

    ### [Method PageRank for Reflector](https://osherove.com/blog/2004/6/4/method-pagerank-for-reflector.html)

- Jun 4, 2004

    ### [Wintellect Web-exclusive articles](https://osherove.com/blog/2004/6/4/wintellect-web-exclusive-articles.html)


---

## About the author

**Roy Osherove**: Senior Solutions Architect at AWS working on AI for production and AI-driven development; author of The Art of Unit Testing and Elastic Leadership, with about 20 years of consulting and training on unit testing, TDD, team leadership and continuous delivery.

### Sites

- [RobotPaper](https://robotpaper.ai/): This blog: AI patterns and anti-patterns, AI and coding agents, and engineering leadership.
- [osherove.com](https://osherove.com): Roy's personal site. Author of The Art of Unit Testing and Elastic Leadership; consulting and training on unit testing, TDD, team leadership and continuous delivery, plus about 20 years of blog posts.
- [The Art of Unit Testing](https://www.artofunittesting.com): The Art of Unit Testing, 3rd Edition (Manning): readable, maintainable, trustworthy unit tests, plus TDD workshops in C#, JavaScript, Java and Kotlin.
- [5whys.com](https://www.5whys.com): Roy's writing on software team leadership: self-organizing teams, surviving chaos, learning mode and the Elastic Leadership model.
- [Pipeline Driven](https://pipelinedriven.org): Continuous delivery and DevOps practices: build patterns, pipeline-friendly testing, DevOps metrics and enterprise DevOps.
- [Elastic Leadership](https://www.elasticleadership.com): Elastic Leadership, Roy's framework for software team leaders (survival, learning and self-organizing modes).

### Social

- X: https://x.com/royosherove
- LinkedIn: https://www.linkedin.com/in/osherove/

### Contact

- Contact form: https://forms.gle/jQSx5KoXvrVA1JCK7

### License

Licensed under CC BY 4.0 — reuse, quote and adapt with attribution (Roy Osherove, link to the original page). License: https://creativecommons.org/licenses/by/4.0/
