tags:

views:

58

answers:

2

Here is a simplified example:

namespace MyNS.Proj.InternalNS {
   internal class InternalClass1 {...}
}

I would like to make InternalNS as the part in MyNS.Proj invisible to outside since all the classes with the namespace are internal or private. Not sure if this is possible?

+2  A: 

The namespace declaration had no accessibility modifiers. It will always be seen by external classes, even if all members are hidden.

Oded
+4  A: 

Namespaces do not have access modifiers. The namespace will always be visible to external code even if its contents are not.

Jeff Yates