hide from intellisense

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 {
            [Browsable(false)]
            [EditorBrowsable(EditorBrowsableState.Never)]
            public int _keyid {
                  get {
                        return id;
                  }
            }
            [Browsable(false)]
            [EditorBrowsable(EditorBrowsableState.Never)]
            public string _paname {
                  get {
                        return name;
                  }
            }
ARACK04Asked:
Who is Participating?
 
dstanley9Connect With a Mentor Commented:
Not from within the project, as far as I know (other than making them private, of course).
0
 
dstanley9Commented:
[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.


0
 
ARACK04Author Commented:
So is there some other way to make intellisense ignore a property?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.