Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@gnome.org>2001-10-27 23:38:07 +0400
committerMiguel de Icaza <miguel@gnome.org>2001-10-27 23:38:07 +0400
commitb187e6674e5947866bbce3de7fa301173f68efd9 (patch)
tree0ad932fe8db22346804201402d6875c32d66172c /mcs/class/System/System.ComponentModel/BrowsableAttribute.cs
parent7ddd6de390bdb6ba7c73d25924ac629a65a64da0 (diff)
2001-10-27 Miguel de Icaza <miguel@ximian.com>
* DesignerSerializationVisibilityAttribute.cs: Implemented. * DesignerSerializationVisibility.cs: New enumeration. * LocalizableAttribute.cs: Implemented. * BrowsableAttribute.cs: Implemented. * DesignOnlyAttribute.cs: Implemented. * DescriptionAttribute.cs: Implement. * MemberDescriptor.cs: Implemented. * CategoryAttribute.cs: implemented. svn path=/trunk/mcs/; revision=1215
Diffstat (limited to 'mcs/class/System/System.ComponentModel/BrowsableAttribute.cs')
-rwxr-xr-xmcs/class/System/System.ComponentModel/BrowsableAttribute.cs38
1 files changed, 38 insertions, 0 deletions
diff --git a/mcs/class/System/System.ComponentModel/BrowsableAttribute.cs b/mcs/class/System/System.ComponentModel/BrowsableAttribute.cs
new file mode 100755
index 00000000000..e56beb2f809
--- /dev/null
+++ b/mcs/class/System/System.ComponentModel/BrowsableAttribute.cs
@@ -0,0 +1,38 @@
+//
+// System.ComponentModel.BrowsableAttribute.cs
+//
+// Author:
+// Miguel de Icaza (miguel@ximian.com)
+//
+// (C) Ximian, Inc. http://www.ximian.com
+//
+//
+
+namespace System.ComponentModel {
+
+ [AttributeUsage (AttributeTargets.Property | AttributeTargets.Event)]
+ public sealed class BrowsableAttribute : Attribute {
+ bool browsable;
+
+ public static readonly BrowsableAttribute No;
+ public static readonly BrowsableAttribute Yes;
+
+ static BrowsableAttribute ()
+ {
+ No = new BrowsableAttribute (false);
+ Yes = new BrowsableAttribute (false);
+ }
+
+ public BrowsableAttribute (bool browsable)
+ {
+ this.browsable = browsable;
+ }
+
+ public bool Browsable {
+ get {
+ return browsable;
+ }
+ }
+
+ }
+}