DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Thu, 23 Aug 2007 13:44:38 +0200,    posted on: microsoft.public.dotnet.languages.csharp        back       

Thread Index
  1    Michael S
          2    Ignacio Machin \( .NET/ C# MVP \) machin TA laceupsolutions.com


Hide 'empty' namespace from extarnal assemblies.   
Hi.

I am working on a  class library where I have a namespace called 
MyProject.Implementation.
This namespace only have internal and private classes.

However, when I use my .dll assembly in a WinForm application, that 
application can still see the namespace via Intellisense. For the consumer 
it appears to be an empty namespace.

As access modifiers are not allowed on namespaces, is there another way to 
signal, to visual studio (or other tools),  that the namespace should be 
'invisible' to outside consumers? An attribute perhaps?

Best Regards
- Michael Starberg
Date:Thu, 23 Aug 2007 13:44:38 +0200   Author:  

Re: Hide 'empty' namespace from extarnal assemblies.   
Hi,


"Michael S"  wrote in message 
news:eHP0BsX5HHA.1188@TK2MSFTNGP04.phx.gbl...

> Hi.
>
> I am working on a  class library where I have a namespace called 
> MyProject.Implementation.
> This namespace only have internal and private classes.
>
> However, when I use my .dll assembly in a WinForm application, that 
> application can still see the namespace via Intellisense. For the consumer 
> it appears to be an empty namespace.
>
> As access modifiers are not allowed on namespaces, is there another way to 
> signal, to visual studio (or other tools),  that the namespace should be 
> 'invisible' to outside consumers? An attribute perhaps?



The only attribute I know of for this is EditorBrowsable:

[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]

not sure if you can apply it to a namespace though, you can try and post 
back yor result :)
Date:Thu, 23 Aug 2007 09:48:17 -0400   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us