C
C#3y ago
blokyk

Excluding record member from default equality comparison

When declaring a record, it seems that every instance field/property, no matter its accessibility, is included in the default equality implementation. Is there any way to exclude a specific member from it without having to manually write the implementation ? Sharplab link : https://sharplab.io/#v2:D4AQDABCCMB0CSB5A3AWAFAgMwQE4FMBjAe1wBMIAlACgEsA7AFwloBoppIBnASggG8MEYRAAOuWgDcAho3wQAYrQA2+ePQBmxCBrToAvkA=
SharpLab
C#/VB/F# compiler playground.
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server