SteveDunn / Vogen

A semi-opinionated library which is a source generator and a code analyser. It Source generates Value Objects
Apache License 2.0
782 stars 46 forks source link

Don't call object.Equals() from '=='-operators but call Equals on the underlying type. #659

Closed danielcweber closed 3 weeks ago

danielcweber commented 3 weeks ago

This is a continuation of #655. Also, this fixes a possible NRE in case the wrapper type is a class. Furthermore, we define '!=' through the '==' operator.