Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Proposal]: Add private and namespace accessibility modifiers for top-level types. #8848

Open
1 of 4 tasks
CyrusNajmabadi opened this issue Dec 7, 2024 · 0 comments
Open
1 of 4 tasks
Assignees
Milestone

Comments

@CyrusNajmabadi
Copy link
Member

private and namespace accessibility modifiers for top-level types

  • Proposed
  • Prototype: Not Started
  • Implementation: Not Started
  • Specification: Not Started

Summary

[summary]: Enable the private modifier to be used for top level types in C#. The semantics of this would differ from internal in that while internal means "this assembly and any assemblies with IVT to this", private would mean "this assembly only". This is already the meaning for nested types, but is not available for top level types.

Similarly, enable the namespace modifier to be used for types in c#. The semantics of this are that these types are only accessible within that namespace only (not including sub-namespaces).

Design meetings

@dotnet dotnet locked and limited conversation to collaborators Dec 7, 2024
@CyrusNajmabadi CyrusNajmabadi self-assigned this Dec 7, 2024
@333fred 333fred added this to the Working Set milestone Jan 13, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants