Click here to Skip to main content
15,886,806 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hello Codeproject
How can I hide one method of a class Inside a class Library from showing in Intellisense??

I tried [EditorBrowsable(EditorBrowsableState.Never)]
but it only work when we unload the Class library project from the solution and add the .dll as reference

Is there any other way to hide public properties and methods from Intellisense?


any Help will be Appreciated

Regards
Salam
Posted
Updated 11-Jan-12 23:55pm
Comments
SvenMe 12-Jan-12 6:17am    
May I ask why you want to hide public properties and methods only in IntelliSense?

1 solution

This is actually by design, as you are the designer/programmer of the library, and not the end user. You actually hit the solution for this yourself, make the library a separate project, and reference the dll in your main project.
 
Share this answer
 
Comments
Salam6331 12-Jan-12 6:16am    
Is there any other way to hide these public fields from Intellisense?
Because when we are doing big projects we should have to keep all class libraries and project inside a single solution.
Wayne Gaylard 12-Jan-12 6:18am    
Why is that, the while idea of writing a class library is so that you can reuse the functions in other projects?
David R. Green 12-Nov-13 14:43pm    
I disagree. Class Library DLL's are a terrible thing and should never be used outside of what the OS itself includes.
Most developers throw their DLLs into the Windows System folder during install, then never remove them during uninstall; they break their own DLLs with versioning issues; and generally cause all manner of end-user and IT problems.
It is just as easy (or easier) to use Add As Link to existing common source libraries to integrate them into the single assembly/executable.
Microsoft should include a metatag that hides classes from Intellisense, that would be the superior route.
Salam6331 12-Jan-12 6:16am    
thank you Wayne Gaylard for the quick response
thank you very much

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900