The file
access modifier is only valid on top-level types
#40867
Labels
doc-bug
Problem with the content; needs to be fixed [org][type][category]
dotnet-csharp/svc
fundamentals/subsvc
help wanted
Good for community contributors to help [up-for-grabs]
okr-health
Content-health KR: Concerns article defects/freshness or build warnings.
Pri1
High priority, do before Pri2 and Pri3
Type of issue
Typo
Description
In a couple sentences, the description of the
file
access modifier could be used on "members", either nested types or member fields, properties, or methods. Neither is allowed. Thefile
access modifier is allowed only on top-level (non-nested) type declarations.Page URL
https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/access-modifiers
Content source URL
https://github.com/dotnet/docs/blob/main/docs/csharp/programming-guide/classes-and-structs/access-modifiers.md
Document Version Independent Id
76a389f6-b568-3568-6483-6df440f96f0c
Article author
@BillWagner
Metadata
The text was updated successfully, but these errors were encountered: