C# records, structs and equality: what == really compares
DEV Community
C# records, structs and equality: what == really compares
Classes compare references, records compare values, until a record holds a List. Plus the with expression that shares more than you think, and a struct whose Equals allocates on every comparison.
0 comments
No comments yet.