0.0758792
var r1 = new SomeRecord("", 0);var r2 = r1 with {};// do some changes with r2if (r1 == r2) <-- True
record
serialize then deserialize
or use records that you can copy using with {}
public object Clone() { return new Person { Name = this.Name, Age = this.Age }; }