Positional parameters in records can create fields instead of properties #44041
Labels
dotnet-csharp/svc
in-pr
This issue will be closed (fixed) by an active pull request.
lang-reference/subsvc
okr-freshness
OKR: Freshness of content
📌 seQUESTered
Identifies that an issue has been imported into Quest.
Type of issue
Missing information
Description
These declarations are both legal:
This article only talks about "properties", which is the default for a record's primary constructor parameter. It should include how to create a public field as well.
Page URL
https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/record
Content source URL
https://github.com/dotnet/docs/blob/main/docs/csharp/language-reference/builtin-types/record.md
Document Version Independent Id
de1f383b-ef20-4776-57a8-04edae892166
Article author
@BillWagner
Metadata
Related Issues
Associated WorkItem - 370944
The text was updated successfully, but these errors were encountered: