This blog will describe some of the learning experiences that I have with .NET, some personal projects that I'm working on, and whatever other topics tickle my fancy.
My Blog Links
Friday, July 09, 2004
Here's an interesting post by Brendan Tompkins on the use of the equality operators for your own class types and typed collections. If you're going to check for uniqueness in a collection based on anything other than the instance, then you're have to override the GetHashCode() and operator==, so that you can actually check based upon the instance data in the class.
Comments: Post a Comment