Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Compact Framework / March 2004

Tip: Looking for answers? Try searching our database.

Access modifiers

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Elisa - 25 Mar 2004 12:01 GMT
Hi,

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

Regards,

Elisa
Jon Skeet [C# MVP] - 25 Mar 2004 12:09 GMT
> Isn't there an access modifier that limits visibility to the same namespace?

No, I'm afraid not.

Signature

Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too

Paul G. Tobey [eMVP] - 25 Mar 2004 16:31 GMT
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.

> > Isn't there an access modifier that limits visibility to the same namespace?
>
> No, I'm afraid not.
Jon Skeet [C# MVP] - 25 Mar 2004 23:17 GMT
> 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.

Signature

Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too

Paul G. Tobey [eMVP] - 25 Mar 2004 23:57 GMT
Right, I stand corrected.

Paul T.

> > You can declare classes in the namespace as 'internal' and only other
> > classes within the same namespace can see them.
[quoted text clipped - 3 lines]
> classes, but classes in the same namespace but in different assemblies
> won't.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.