EditorBrowsable - EditorBrowsableState.Never shows up in Intellisense - Raj Kaimal

EditorBrowsable - EditorBrowsableState.Never shows up in Intellisense

I had a property in a WebControl marked as EditorBrowsableState.Never but it was still showing up in Intellisense. After googling for a long time, I found this post with a response by Linda Liu.

Speaking for C#, the EditorBrowsableAttribute attribute only influences C#  IntelliSense filtering behavior if the decorated item is imported from metadata.

That's to say, you should compile the EditorBrowsableAttribute-decorated  project (e.g project 1) into an assembly (.dll or .exe) and then in another project (e.g project 2) add a reference to that assembly. In project 2, you should see the attribute at work.

C# IntelliSense filtering behavior is not influenced if you are coding in project 1. What's more, if you add a project-to-project reference to project 1 in project 2, C# IntelliSense filtering behavior is not influenced when you are coding in project 2 either.

The IDE is intended to filter items from consumers of your assembly and not to filter items from yourself as you code the assembly.

Since I had a project to project reference, intellisense ignored this attribute - aargh :-(

Published Sunday, March 04, 2007 10:05 PM by rajbk

Comments

# re: EditorBrowsable - EditorBrowsableState.Never shows up in Intellisense

Thank you for pointing us to that fact but yes Arrrrgh...

Monday, June 16, 2008 9:51 AM by Marc Roussel

# re: EditorBrowsable - EditorBrowsableState.Never shows up in Intellisense

Saved me some time. Thanks.

Thursday, November 20, 2008 12:40 PM by Deeno

# re: EditorBrowsable - EditorBrowsableState.Never shows up in Intellisense

thanks. arrrrr, tooo

Monday, June 15, 2009 12:42 PM by Janko

# re: EditorBrowsable - EditorBrowsableState.Never shows up in Intellisense

Arrrrrrrgh! (pirate voice)

Friday, October 09, 2009 12:55 PM by Brian

# re: EditorBrowsable - EditorBrowsableState.Never shows up in Intellisense

Thanks a lot man, lol. I was also looking for a solution to this problem :D.

Wednesday, August 11, 2010 1:44 PM by Rafael Ribeiro

Leave a Comment

(required) 
(required) 
(optional)
(required)