Namespace Security

  • Thread starter Thread starter TJO
  • Start date Start date
T

TJO

Is there any way to secure a Namespace so that it can only be accessed from
a designated Namespace? I believe there is a way but cannot locate the
exact sytax to do so.

Thanks
 
Hi

Do note that Namespaces is mechanism used to provide a
hierarchy to your classes and not meant as access
specifiers. So there is no way you can specify access
levels based on your namespace

The nearest thing is to provide assembly level access
using the friend(VB)/internal(C#) keywords so that only
classes within the same assembly can acces the entity


hth

regards,

sr
 
Back
Top