Browse by Tags

All Tags » Item 10 (RSS)
Errata: Item 10
p. 63. Item 10 incorrectly implies that System.ValueType contains a static operator ==. It doesn't. However, many developers do create what seems like a simple solution: struct MyType { // data members elided. static bool operator == ( MyType l, MyType...

Posted by wwagner | with no comments

Filed under:

.NET Framework changes affecting Items 9, 10
The advice is still proper, but the justification is somewhat different. The 2.0 version of the .NET framework has changed the way they implement ValueType.Equals() and ValueType.GetHashCode(). This affects some of the justification for my advice in items...

Posted by wwagner | with no comments

Filed under: ,