views:

312

answers:

1

I am working on a C# project that involves ASP.NET custom server controls. I have several properties, methods etc that I hide from intellisense using the...

[EditorBrowsable(EditorBrowsableState.Never)]

...attribute. I also have a web project set up to test these controls. When I reference the web controls as a component in the form of a .dll, the intellisense hides the properties etc fine, but when I reference the web controls via project it shows them.

Is there a reason for this? Is it a bug? Or am I doing something wrong?

Thanks :)

+3  A: 

I believe the thinking is that if you have the project in the solution, you probably are "close enough" to the code to want to see even hidden methods - where-as if you are consuming just a dll, you probably aren't.

There is a community comment with the same symptom in MSDN (bottom of the page).

Marc Gravell
Cheers for that... seems like am not the only one with this little issue!
Chalkey