|
|
|
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:
|
|
|