LINQ calls IEqualityComparer<T>.GetHashCode() before Equals()

November 24, 2014 LINQ, IEqualityComparer, GetHashCode

This is a problem that has bitten me more than a few times so I thought it was about time to write a blog post about it. It's one of those problems that makes you scratch your head for a bit and then the light bulb goes on and you remember you've solved this one before. It occurs whenever you use a LINQ extension method which takes an instance of IEqualityComaparer.

Read More