Blog105.2K views3,433 votes1 reply1 comment1,988 following
Stop Writing Equals and GetHashCode: Use C# Records for Data Models
C# records generate value-based equality, ToString, and init-only properties, but shallow copies and type-sensitive equality can catch you off guard.