Thursday, June 09, 2005

Sets in C#

Unlike Java, C# does not include Sets in the Collections framework. HashedSets are relatively easy, just use the same key and value in a Hashtable object. If you need something more advanced (e.g. SortedSet), I found this on codeproject by Jason Smith. It adds support for "Set" collections to .NET. Disclaimer: I haven't actually used it yet...

No comments: