Add access modifier for namespaces #4153
-
For larger projects, it would be very helpful to create a class access modifier keyword such as "Closed" or something which would restrict the usage of a class to other classes in the same Namespace, so we don't have to create a separate DLL for smaller sections which really don't warrant it! That way you can simply expose a single class to other namespaces, and keep the rest of the classes restricted to components of the exposed class :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
You can do this with an analyzer. In general, if you're asking for a feature to disallow or block off something currently legal, then we'll likely just push for this to be done with that mechanism. |
Beta Was this translation helpful? Give feedback.
You can do this with an analyzer. In general, if you're asking for a feature to disallow or block off something currently legal, then we'll likely just push for this to be done with that mechanism.