When do we need to use
MSDN says it all:
Specifies whether a property or event should be displayed in a Properties window.
For example, if you're creating a User Control, you might want to decorate non-UI-related properties with
[Browsable(false)] so that they will not be available through a "Properties" window.
Additionally, it controls which properties of an object can be seen in a
As for why we can pass
true explicitly, I believe this is due to
BrowsableAttributes property of a
PropertyGrid. You can set it to contain
BrowsableAttribute.No, so that the property grid will display all non-browsable members.