Skip to content

Tip 5.41: You can mark methods and types as Hidden so that they don’t appear in Microsoft IntelliSense or in the Object Browser

May 26, 2014

“Visual Studio Tips, 251 ways to improve your Productivity in Visual Studio, in “, courtesy of ‘Sara Ford’

Sara Ford’s Blog

Continuing from Tip 5.40, this tip is how to actually make something hidden or capable of being hidden.

In the System.ComponentModel namespace, there’s the EditorBrowseableAttribute class.

Going back to the previous tip’s Method1() and Method2() methods, you’ll see in the following example how Method2() doesn’t appear in IntelliSense, just like it doesn’t appear in the Object Browser.


Of course, you can still complete the line just shown with Method2(), and everything will compile successfully.

Happy Programming! =)

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: