C#C
C#3y ago
10 replies
bacon

❔ Custom Copy Semantics for `record struct`?

Hey all - I'm having a hard time figuring out how to (and if it's even supportedt) to do custom copy semantics for record structs. Changing my record type to a record/record class properly calls the copy ctor, but if it's a record struct, when I use
with
the copy ctor isn't being called. Would love any help here
Was this page helpful?