Skip to content

Add a table for all property access modifiers #40150

@BillWagner

Description

@BillWagner

Type of issue

Missing information

Description

We should add a table that explains the relationships and behavior for different access modifiers: get, set, init, and required. It should also explain read-only auto-implemented properties, where the property can be set in a constructor, even though no set accessor is declared.

It should also have the common cases for adding an access modifier on the set accessor.

Page URL

https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/properties

Content source URL

https://github.com/dotnet/docs/blob/main/docs/csharp/programming-guide/classes-and-structs/properties.md

Document Version Independent Id

05423053-63de-3e56-0929-2ae477d577df

Article author

@BillWagner

Metadata

  • ID: 8fb1d95e-a652-a965-f817-d49554a07388
  • Service: dotnet-csharp
  • Sub-service: fundamentals

Associated WorkItem - 297644

Metadata

Metadata

Assignees

Labels

📌 seQUESTeredIdentifies that an issue has been imported into Quest.dotnet-csharp/svcfundamentals/subsvcin-prThis issue will be closed (fixed) by an active pull request.okr-qualityContent-quality KR: Concerns article defects (bugs), freshness, or build warnings.user-feedbackIssues related to "Unified User Feedback".

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions