[Browsable(false)] +C#

Posted on 2011-04-20
Last Modified: 2012-06-22
the keyword "[Browsable(false)]", what is mean in C# and how i can use it
Question by:MKItani
    LVL 10

    Expert Comment

    It is an Attribute, and determines if the property it is set on is visible in Visual Studios property window.

    Browsable Attribute:

    Good Luck!

    LVL 10

    Expert Comment

    It is of course not only applicable on properties but events too.
    LVL 10

    Accepted Solution

    Sorry, forgot to hit the attach button for the code... here's the example:
    using System.ComponentModel;
    public class Bar {
      public int Foo {
        get { /* Insert code here */ }
        set { /* Insert code here */ }

    Open in new window


    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

    Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
    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.
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    This video discusses moving either the default database or any database to a new volume.

    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