Smaller granularity of access control level based on namespace, like java's default? #4092
-
I have seen discussions in this repo regarding friend class. Sometimes I also face similar situation and feel that the access control is a little bit limited in C#. I am not sure whether a similar feature to Java's default access level (visible to classes in the same package, counterpart for namespace in C#) have been considered. What's it like: How it might be implemented: Why I think it's good: Many people do not prefer friend class probably because:
I am curious how you think about this. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
This is pretty much a duplicate of #1138. |
Beta Was this translation helpful? Give feedback.
This is pretty much a duplicate of #1138.