[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1699
  • Last Modified:

[Browsable(false)] +C#

the keyword "[Browsable(false)]", what is mean in C# and how i can use it
0
MKItani
Asked:
MKItani
  • 3
1 Solution
 
oxyooCommented:
It is an Attribute, and determines if the property it is set on is visible in Visual Studios property window.

Browsable Attribute: http://msdn.microsoft.com/en-us/library/system.componentmodel.browsableattribute.aspx


Good Luck!

0
 
oxyooCommented:
It is of course not only applicable on properties but events too.
0
 
oxyooCommented:
Sorry, forgot to hit the attach button for the code... here's the example:
using System.ComponentModel;


public class Bar {

  [Browsable(true)]
  public int Foo {
    get { /* Insert code here */ }
    set { /* Insert code here */ }
  }

}

Open in new window

0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now