adamjcooper.com/blog

Enterprise Software Development in C#

Snippets for Boilerplate Code When Overriding Equality and Hash Code

Overriding Equals and GetHashCode is easy, but implementing them correctly is not. As Jonathan Allen says in his excellent article A Detailed look at Overriding the Equality Operator, "It is surprisingly easy to make a mistake when overriding the equality operator. Not only does the equality operato... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


 
Powered by BlogEngine.NET 1.4.5.0 | Design by adamjcooper