I’m writing a class library and came across the need to make a namespace internal. I’m doing that because there’s some auto-generated code coming from XSD, in order to have no collisions.
However, does wanting a namespace to be internal make any sense at all? I know it’s not possible. I read this ( Internal Namespace for .Net? ), amongst others.
What I’m asking is, if you think you want/need an internal namespace, what can be improved in your architecture/design? What should I move around in order to get rid of the false need to have an internal namespace?
No, namespaces themselves have no particular accessibility. It’s only the members of a namespace (types, basically) which have accessibilty. Simply make all the types in the namespace internal instead.