≈ the.bay.news

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

Sign in to join the discussion — your thebay.events account works here.

No comments yet.