Access modifiers

  • Thread starter Thread starter Elisa
  • Start date Start date
E

Elisa

Hi,

Isn't there an access modifier that limits visibility to the same namespace?


Regards,

Elisa
 
You can declare classes in the namespace as 'internal' and only other
classes within the same namespace can see them. This may not apply to
everything that you could declare at namespace scope, but it works in this
case, at least.

Paul T.
 
Paul G. Tobey said:
You can declare classes in the namespace as 'internal' and only other
classes within the same namespace can see them.

No, that's only other classes within the same *assembly*. Other classes
in different namespaces but the same assembly will be able to see those
classes, but classes in the same namespace but in different assemblies
won't.
 
Right, I stand corrected.

Paul T.

Jon Skeet said:
No, that's only other classes within the same *assembly*. Other classes
in different namespaces but the same assembly will be able to see those
classes, but classes in the same namespace but in different assemblies
won't.
 
Back
Top