Skip to content
Tools
Errors
Commands
Flags
Config
Cheat sheets
Changes
Compat
Codes
Compare
Glossary
Search
Ctrl K
Browse
Tools
Error Messages
Commands
Flags & Options
Config Reference
Cheat Sheets
Version Changes
Compatibility
Codes & Tables
X vs Y
Glossary
Home
X vs Y
C#
Languages
C# X vs Y
The main .NET language.
All C# pages
C# record vs class: equality, immutability and with expressions
C# records compare by value and get with expressions, ToString and deconstruction; classes compare by reference. When to use each one, run with dotnet 10.
Esc