1.

Is It Possible To Restrict The Scope Of A Field/method Of A Class To The Classes In The Same Namespace?

Answer»

There is no WAY to restrict to a namespace. NAMESPACES are NEVER units of protection. But if you're using assemblies, you can use the 'internal' access modifier to restrict access to only within the assembly.

There is no way to restrict to a namespace. Namespaces are never units of protection. But if you're using assemblies, you can use the 'internal' access modifier to restrict access to only within the assembly.



Discussion

No Comment Found