Xerxes Blog

equality

Equals and GetHashCode in C#: Why Equality Is Harder Than It Looks

A practical introduction to equality contracts in .NET and the bugs that appear when Equals and GetHashCode disagree.

engineering #csharp #dotnet #equality