Equality Pattern from Resharper
I was just reading this blog entry on how Resharper can auto generate equality members.
This is a pretty nice pattern to follow even when doing this by hand.
Here is the class it was created for:
I’ve know about most of this pattern including ReferenceEquals, but look at the unchecked keyword. Very cool indeed. I do wonder what the significance of the ‘* 397’ is though. Any ideas?