Quantcast
Channel: C# Set collection? - Stack Overflow
Viewing all articles
Browse latest Browse all 8

Answer by thecoop for C# Set collection?

$
0
0

I use a wrapper around a Dictionary<T, object>, storing nulls in the values. This gives O(1) add, lookup and remove on the keys, and to all intents and purposes acts like a set.


Viewing all articles
Browse latest Browse all 8

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>