Guest MemberLanguage   English
.NET & C# · C#

What are records and immutability in C#?

BeginnerUpdated 2026-08-08

Records are data-focused types with generated value-based equality and convenient support for immutable-style updates using with expressions. In practice, the value of this concept comes from understanding where it belongs in the design, what problem it solves, and what constraints or tradeoffs it introduces.

#csharp#records and immutability