StephenCleary / Comparers

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

Remove NotImplementedException #16

Closed StephenCleary closed 5 years ago

StephenCleary commented 5 years ago

Change the semantics of wrapping bare IComparer<T> types from "if you use GetHashCode without implementing it, we'll throw NotImplementedException at the time GetHashCode is called" to "you must implement GetHashCode; otherwise an exception is thrown at construction time".

Note that this is a breaking change.