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
Post a Comment
No comments:
Post a Comment