Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. To hide a class member from intellisense

To hide a class member from intellisense

Scheduled Pinned Locked Moved ASP.NET
questionvisual-studio
6 Posts 3 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Saranya B
    wrote on last edited by
    #1

    Hello Everybody, I have a class. I dont want a particular public class member/method to be listed in intellisense property. I have tried [EditorBrowsable(EditorBrowsableState.Never)] attribute. But for this, i have to have a property. And that member is now anyway displayed as property in intellisense. I dont see any difference even after commenting [EditorBrowsable(EditorBrowsableState.Never)] attribute. Can anybody explain me how this [EditorBrowsable(EditorBrowsableState.Never)] works? What is the exact purpose? Thanks for your response... -Saran

    N 1 Reply Last reply
    0
    • S Saranya B

      Hello Everybody, I have a class. I dont want a particular public class member/method to be listed in intellisense property. I have tried [EditorBrowsable(EditorBrowsableState.Never)] attribute. But for this, i have to have a property. And that member is now anyway displayed as property in intellisense. I dont see any difference even after commenting [EditorBrowsable(EditorBrowsableState.Never)] attribute. Can anybody explain me how this [EditorBrowsable(EditorBrowsableState.Never)] works? What is the exact purpose? Thanks for your response... -Saran

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      Have you used this like what MSDN Say's[^]

      Navaneeth My Website

      S 1 Reply Last reply
      0
      • N N a v a n e e t h

        Have you used this like what MSDN Say's[^]

        Navaneeth My Website

        S Offline
        S Offline
        Saranya B
        wrote on last edited by
        #3

        Yes... Replicated the same in my class too... But I am seeing the prorty displayed in intellisens regardless of [EditorBrowsable(EditorBrowsableState.Never)] attribute's presence.

        P 1 Reply Last reply
        0
        • S Saranya B

          Yes... Replicated the same in my class too... But I am seeing the prorty displayed in intellisens regardless of [EditorBrowsable(EditorBrowsableState.Never)] attribute's presence.

          P Offline
          P Offline
          Paddy Boyd
          wrote on last edited by
          #4

          Why do you not want it displayed in intellisense?

          S 1 Reply Last reply
          0
          • P Paddy Boyd

            Why do you not want it displayed in intellisense?

            S Offline
            S Offline
            Saranya B
            wrote on last edited by
            #5

            Then what is the use of [EditorBrowsable(EditorBrowsableState.Never)] attribute... The description given in MSDN is -Saran

            P 1 Reply Last reply
            0
            • S Saranya B

              Then what is the use of [EditorBrowsable(EditorBrowsableState.Never)] attribute... The description given in MSDN is -Saran

              P Offline
              P Offline
              Paddy Boyd
              wrote on last edited by
              #6

              Not complaining, just curious.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups