IEqualityComparer that uses ReferenceEquals

Just in case there is no default implementation, this is my own: Edit by 280Z28: Rationale for using RuntimeHelpers.GetHashCode(object), which many of you probably haven’t seen before. 🙂 This method has two effects that make it the correct call for this implementation: It returns 0 when the object is null. Since ReferenceEquals works for null … Read more