Category: Generics

Jun 16

What is the generic implementation of a HashTable?

The generic HashSet<T> class is a not ordered collection for containing unique elements which is the equivalent of the HashTable but for use with generics. For more information about this collection, see HashSet Collection Type at the MSDN website.

Jun 15

How to: Create a generic method constraining T to an Enumeration

Although I believe that as part of the .Net framework version 4 you can specify the Enumeration type that you need when you are creating a generic method, this is not available in the .Net framework 3.5 (or in previous releases for that matter). The problem then becomes that you don’t want to have a …

Continue reading