docs icon indicating copy to clipboard operation
docs copied to clipboard

Add C# 11 errors for `file` scoped types

Open BillWagner opened this issue 1 month ago • 0 comments

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

BillWagner avatar Nov 03 '25 20:11 BillWagner