Records described as "immutable by default" when they are not #21224
Labels
🏁 Release: .NET 5
Work items for the .NET 5 release
doc-bug
Problem with the content; needs to be fixed [org][type][category]
dotnet-csharp/svc
whats-new/subsvc
Only certain usages of the
record
syntax provide "immutable by default". However, it is possible (and quite easy) to create a mutable record type:This all compiles and runs.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: