C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




How to hide types and methods from intellisense


Posted Date: 20 Aug 2008    Resource Type: Tips    Category: Visual Studio
Author: pradiptaMember Level: Gold    
Rating: Points: 5



We can make a method or property hidden so that it wont appear in Intellisense and object browser. We can use the following attribute to do so.


<ComponentModel.EditorBrowsable(ComponentModel.EditorBrowsableState.Never)>


Sample usage:


Public Class ClassA
<ComponentModel.EditorBrowsable(ComponentModel.EditorBrowsableState.Never)> _
Public Sub MyHiddenMethod()
'This is a private method which will niether available in Intellisense nor it will
'be available in Object Browser
End Sub
Private Sub Test()
'This is a private method which will not available in Intellisense but will
'be available in Object Browser
End Sub
End Class


Though the hidden types are not shown in Intellisense but the code will compile.




Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Make methods and types as Hidden  .  Intellisense  .  Hide from intellisense  .  

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Running multiple projects in one solution
Previous Resource: Interview Questions
Return to Discussion Resource Index
Post New Resource
Category: Visual Studio


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design


Contact Us    Privacy Policy    Terms Of Use