Until the official HashSet becomes available in .NET 3.5, here’s a simple generic class that does the exact same thing – get rid now of that Dictionary variables! Actually what pissed me off most with Dictionary isn’t that dummy value parameter but the fact that Add throws an exception if the key was already present.