ObjectSharp Blogs

You are currently viewing

Dave Lloyd's 2 Cents

A .NET Developer's Perspective


Is IntelliSense showing you everything?

Well I learned something new today. I can't believe I have been developing in Visual Studio .Net for so long without knowing this one. I'm sure someone showed me at one time or another. If they did I forgot.

A colleague of mine mentioned I should use a particular property on a particular class. When I went to use it, it did not show up in IntelliSense. I mentioned this to my very clever friend, who pointed out the following option to me. Apparently the property I was trying to access via IntelliSense was flagged by the developer as an advanced member.

If you have members in a class that you want to be treated as advanced, use the following attribute;

EditorBrowsable(EditorBrowsableState.Advanced)

 

Comments

  • dave August 4, 2004 12:07 PM

    I'm pretty sure by default that option is turned off for C# developers, and turned on for VB.NET developers... seriously though :)

  • dave August 4, 2004 1:03 PM

    It seems you are correct. And I can see why they did that, however they should not have assumed that all developers using VB.Net would have come from the VB 6.0 world.

  • TrackBack February 15, 2005 12:02 PM

  • TrackBack February 15, 2005 12:15 PM

Leave a Comment

(required) 
(optional)
(required) 

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS