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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top