Namespace access modifier

Is it possible to access a function or subroutine with the same namespace using the private access modifier?

Or should the access modifier be public or internal?

+3
source share
2 answers

Inside the class, you can access all the methods and properties of this class, as well as any protected members opened by its base class (if any).

Inside another class in the same namespace layout (or assembly of friends) you can only refer to public or internal members of the first class.

Classes from Other Namespaces can have access only to open members.

Notes:

  • , #/VB, . .
  • , .
+3

All Articles