Saturday, August 22, 2009

Complete .NET IEquatable implementation reference

I finally wrote a sample code that shows the correct way to implement all IEquatable related methods:

http://code.google.com/p/iequatable-implementation-reference/source/browse/IEquatableReference/trunk/IEquatableReference/ValuesClass.cs

The unit tests that justify each line of code are there:

http://code.google.com/p/iequatable-implementation-reference/source/browse/IEquatableReference/trunk/IEquatableReferenceTest/ValuesClassTest.cs

No comments: