Answer:
No, there is no way to restrict to a namespace.The namespaces are never the units of protection. But if you’re using assemblies, you can use the ‘internal’ access modifier to restrict access to only within the assembly.
Asked In: Many Interviews |
Alert Moderator