2002-11-11 Tim Coleman <tim@timcoleman.com>
authorTim Coleman <tim@mono-cvs.ximian.com>
Tue, 12 Nov 2002 02:05:34 +0000 (02:05 -0000)
committerTim Coleman <tim@mono-cvs.ximian.com>
Tue, 12 Nov 2002 02:05:34 +0000 (02:05 -0000)
        * list.unix:
        * list:
        * System.ComponentModel/DesignTimeVisibleAttribute.cs:
                Add new class

svn path=/trunk/mcs/; revision=8928

mcs/class/System/ChangeLog
mcs/class/System/System.ComponentModel/DesignTimeVisibleAttribute.cs [new file with mode: 0644]
mcs/class/System/list
mcs/class/System/list.unix

index 1edc29a710192c642bdebb99394326efe411572f..beae952c704afc27499a324848ab559563143971 100644 (file)
@@ -1,3 +1,9 @@
+2002-11-11 Tim Coleman <tim@timcoleman.com>
+       * list.unix:
+       * list:
+       * System.ComponentModel/DesignTimeVisibleAttribute.cs:
+               Add new class
+
 2002-11-06 Jackson Harper <jackson@latitudegeo.com>
 
        * list.unix: Added Microsoft.CSharp/Compiler.cs to build
diff --git a/mcs/class/System/System.ComponentModel/DesignTimeVisibleAttribute.cs b/mcs/class/System/System.ComponentModel/DesignTimeVisibleAttribute.cs
new file mode 100644 (file)
index 0000000..6f5868f
--- /dev/null
@@ -0,0 +1,68 @@
+//
+// System.ComponentModel.DesignTimeVisibleAttribute.cs
+//
+// Author:
+//   Tim Coleman (tim@timcoleman.com)
+//
+// Copyright (C) Tim Coleman, 2002
+//
+
+namespace System.ComponentModel {
+       [AttributeUsage (AttributeTargets.Class | AttributeTargets.Interface)]
+       public sealed class DesignTimeVisibleAttribute : Attribute 
+       {
+               #region Fields
+
+               bool visible;
+               
+               public static readonly DesignTimeVisibleAttribute Default = new DesignTimeVisibleAttribute (true);
+               public static readonly DesignTimeVisibleAttribute No = new DesignTimeVisibleAttribute (false);
+               public static readonly DesignTimeVisibleAttribute Yes = new DesignTimeVisibleAttribute (true);
+
+               #endregion // Fields
+
+               #region Constructors
+
+               public DesignTimeVisibleAttribute ()
+                       : this (true)
+               {
+               }
+
+               public DesignTimeVisibleAttribute (bool visible)
+               {
+                       this.visible = visible; 
+               }
+
+               #endregion // Constructors
+
+               #region Properties
+
+               public bool Visible {
+                       get { return visible; }
+               }
+
+               #endregion // Properties
+
+               #region Methods
+
+               [MonoTODO]
+               public override bool Equals (object value)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public override int GetHashCode ()
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public override bool IsDefaultAttribute ()
+               {
+                       throw new NotImplementedException ();
+               }
+
+               #endregion // Methods
+       }
+}
index eb93a34b3a91c1080db10750c2372ef4c480ed7f..54b3ba4584cc378fdc2e698aa26c783f244cd125 100755 (executable)
@@ -26,6 +26,7 @@ System.ComponentModel\DescriptionAttribute.cs
 System.ComponentModel\DesignerSerializationVisibility.cs\r
 System.ComponentModel\DesignerSerializationVisibilityAttribute.cs\r
 System.ComponentModel\DesignOnlyAttribute.cs\r
+System.ComponentModel\DesignTimeVisibleAttribute.cs\r
 System.ComponentModel\EnumConverter.cs\r
 System.ComponentModel\EventHandlerList.cs\r
 System.ComponentModel\IBindingList.cs\r
index 3e05b485f1ecefc9b2244856de9dc3fdc20b5868..62437ee1c296910bdea3d2449306260e032eb5f6 100755 (executable)
@@ -203,6 +203,7 @@ System.ComponentModel/CollectionChangeAction.cs
 System.ComponentModel/CollectionChangeEventArgs.cs
 System.ComponentModel/CollectionChangeEventHandler.cs
 System.ComponentModel/DerivedPropertyDescriptor.cs
+System.ComponentModel/DesignTimeVisibleAttribute.cs
 System.ComponentModel/EnumConverter.cs
 System.ComponentModel/IListSource.cs
 System.ComponentModel/ISupportInitialize.cs