Comparing Values for Equality in .NET: Identity and Equivalence (Part 2)

Continued from Part 1: ii) object.Equals(a, b) object.Equals(a, b)): Overview object.Equals(a, b) is a static method on the object class. Jeffery Richter describes it as ‘a little helper method’. It’s easiest to think of it as a method that does some checking for nulls and then calls a.Equals(b). The reason it exists is that if … Continue reading Comparing Values for Equality in .NET: Identity and Equivalence (Part 2)