StephenCleary / Comparers

The last comparison library you'll ever need!
MIT License
427 stars 33 forks source link

Revisit GetHashCode(null) behavior #17

Closed StephenCleary closed 5 years ago

StephenCleary commented 5 years ago

Currently we allow IEqualityComparer.GetHashCode(null) for value types. Should we?

If changed, this would be a breaking change.

StephenCleary commented 5 years ago

Yes, we should. Microsoft does, too.