Work on #74: allow customizing whether the == and != operators are generated for classes#75
Work on #74: allow customizing whether the == and != operators are generated for classes#75fraluderin wants to merge 1 commit intodiegofrata:mainfrom
Conversation
…stomize equality operators override behavior; updated ClassEqualityGenerator to observe OverrideEqualityOperators parameter; added test cases BaseEqualityWithoutOperators
|
Hi @fraluderin. It looks as this PR was based off |
|
Hi @diegofrata, no problem. I'll ask if I’m in doubt. |
|
One concern is that |
|
"One concern is that OverrideEqualityOperators correctly only works on classes and does nothing for structs and records" |
|
@osexpert I think that would do, but an analyzer is always a good call! |
Proposed draft implementation: added parameter OverrideEqualityOperators in EquatableAttribute to customize equality operators override behavior; updated ClassEqualityGenerator to observe OverrideEqualityOperators parameter; added test cases BaseEqualityWithoutOperators