StephenCleary/Comparers

Static constructors not always run

StephenCleary opened this issue · 0 comments

In the example code for EquatableBase declare a DefaultComparer property in the derived type to make sure that the static constructor has run. This will prevent users from getting null when using DerivedType.DefaultComparer (as I have repeatedly).

(from #32)