Skip to content

Add C# 11 errors for file scoped types #49597

@BillWagner

Description

@BillWagner

Type of issue

Missing information

Description

Add documentation for the following errors and warnings related to file scoped types (added in C# 11):

CS9051, CS9052, CS9053, CS9054, CS9056, CS9068, CS9069, CS9071

Note that file is officially not considered an access modifier, so don't combine will all errors and warnings related to access modifiers.

Page URL

https://learn.microsoft.com/en-us/dotnet/csharp/misc/sorry-we-don-t-have-specifics-on-this-csharp-error

Content source URL

https://github.com/dotnet/docs/blob/main/docs/csharp/misc/sorry-we-don-t-have-specifics-on-this-csharp-error.md

Document Version Independent Id

58a19505-ac46-c5c8-12cc-fe87b6aa18a7

Platform Id

8acee5cb-4bef-a4f2-edd5-e8e236844c4e

Article author

@BillWagner

Metadata

  • ID: bbb051ee-f020-66ba-c601-4a08ad32ef61
  • PlatformId: 8acee5cb-4bef-a4f2-edd5-e8e236844c4e
  • Service: dotnet-csharp
  • Sub-service: errors-warnings

Related Issues


Associated WorkItem - 506004

Metadata

Metadata

Assignees

Labels

📌 seQUESTeredIdentifies that an issue has been imported into Quest.dotnet-csharp/svcerrors-warnings/subsvcokr-curationOKR: Curate content to remove outdated recommendationsokr-qualityContent-quality KR: Concerns article defects (bugs), freshness, or build warnings.

Type

No type

Projects

Status

🔖 Ready

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions