Reputation: 773
Can a function or sub-routine be accessed by the same namespace with the access modifier of private?
Or does the access modifier need to be public or internal?
Upvotes: 3
Views: 5162
Reputation: 87
Clearifying MSDN content about http://msdn.microsoft.com/en-us/library/ba0a1yw2.aspx
Upvotes: -1
Reputation: 5551
Within a class you can access all methods and properties that belong to that class as well as any protected members exposed by its base class (if it has one).
Within another class in the same namespace assembly (or friend assembly) you can only reference the public or internal members of the first class.
Classes from other namespaces assemblies can only access public members.
Notes:
Upvotes: 3