hide from intellisense

Posted on 2006-06-08
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
    LVL 25

    Expert Comment

    [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

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

    Accepted Solution

    Not from within the project, as far as I know (other than making them private, of course).

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
    Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    745 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

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now