hide from intellisense

Posted on 2006-06-08
Medium Priority
Last Modified: 2012-08-13
I'm tryign to declare some properties in such a way that intellisense will NOT display them.  This is what I have, but for some reason intellisense is still dispaying them.  thanks!

namespace namesp {
      public partial class Genre {
            public int _keyid {
                  get {
                        return id;
            public string _paname {
                  get {
                        return name;
Question by:ARACK04
  • 2
LVL 25

Expert Comment

ID: 16864943
[EditorBrowsable(EditorBrowsableState.Never)] does not do anything from within the same project.  I think this is because C# evaluates intellisense for the current project from the code (since it doesn't compile on-the-fly) but uses the metadata (where the attribute is stored) for other projects.  That's just a guess, though.


Author Comment

ID: 16864978
So is there some other way to make intellisense ignore a property?
LVL 25

Accepted Solution

dstanley9 earned 2000 total points
ID: 16865060
Not from within the project, as far as I know (other than making them private, of course).

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Loops Section Overview
Suggested Courses

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question