2002-01-18 Duncan Mak <duncan@ximian.com>
authorDuncan Mak <duncan@mono-cvs.ximian.com>
Fri, 18 Jan 2002 22:49:16 +0000 (22:49 -0000)
committerDuncan Mak <duncan@mono-cvs.ximian.com>
Fri, 18 Jan 2002 22:49:16 +0000 (22:49 -0000)
    * ObsoleteAttribute.cs:
    * STAThreadAttribute.cs:
    * MTAThreadAttribute.cs:
    * ThreadStaticAttribute.cs:
    * LoaderOptimizationAttribute.cs:
    * PlatformNotSupportedException.cs:
    * LoaderOptimization.cs: Added to CVS.

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

mcs/class/corlib/System/ChangeLog
mcs/class/corlib/System/LoaderOptimization.cs [new file with mode: 0644]
mcs/class/corlib/System/LoaderOptimizationAttribute.cs [new file with mode: 0644]
mcs/class/corlib/System/MTAThreadAttribute.cs [new file with mode: 0644]
mcs/class/corlib/System/ObsoleteAttribute.cs [new file with mode: 0644]
mcs/class/corlib/System/PlatformNotSupportedException.cs [new file with mode: 0644]
mcs/class/corlib/System/STAThreadAttribute.cs [new file with mode: 0644]
mcs/class/corlib/System/ThreadStaticAttribute.cs [new file with mode: 0644]

index ea01067a465c0077edb5d3d0f74adcbe7599e70b..f53a2f3852cfad4abb6e64fc270b4b8f0f03938b 100644 (file)
@@ -1,3 +1,12 @@
+2002-01-18  Duncan Mak  <duncan@ximian.com>
+       * ObsoleteAttribute.cs:
+       * STAThreadAttribute.cs:
+       * MTAThreadAttribute.cs:
+       * ThreadStaticAttribute.cs:
+       * LoaderOptimizationAttribute.cs:
+       * PlatformNotSupportedException.cs:
+       * LoaderOptimization.cs: Added to CVS.
+
 2002-01-18  Duncan Mak  <duncan@ximian.com>
 
        * AppDomainUnloadedException.cs:
diff --git a/mcs/class/corlib/System/LoaderOptimization.cs b/mcs/class/corlib/System/LoaderOptimization.cs
new file mode 100644 (file)
index 0000000..cb314e2
--- /dev/null
@@ -0,0 +1,18 @@
+//
+// System.LoaderOptimization.cs
+//
+// Author: Duncan Mak  (duncan@ximian.com)
+//
+// (C) Ximian, Inc.  http://www.ximian.com
+//
+
+namespace System
+{
+          public enum LoaderOptimization
+          {
+                        NotSpecified = 0,
+                        SingleDomain = 1,
+                        MultiDomain = 2,
+                        MultiDomainHost = 3
+          }
+}
diff --git a/mcs/class/corlib/System/LoaderOptimizationAttribute.cs b/mcs/class/corlib/System/LoaderOptimizationAttribute.cs
new file mode 100644 (file)
index 0000000..9de9569
--- /dev/null
@@ -0,0 +1,34 @@
+//
+// System.LoaderOptimizationAttribute.cs
+//
+// Author: Duncan Mak  (duncan@ximian.com)
+//
+// (C) Ximian, Inc.  http://www.ximian.com
+//
+
+namespace System
+{
+     [AttributeUsage (AttributeTargets.Method)]
+       public class LoaderOptimizationAttribute : Attribute
+       {
+                  private LoaderOptimization lo;
+
+// Constructors
+                  public LoaderOptimizationAttribute (byte value) 
+                  {
+                                lo = (LoaderOptimization) value;
+                  }
+
+                  public LoaderOptimizationAttribute (LoaderOptimization value)
+                  {
+                                lo = value;
+                  }
+
+                  // Properties
+                  public LoaderOptimization Value
+                  {
+                                get { return lo; }
+                  }
+                  
+       }
+}
diff --git a/mcs/class/corlib/System/MTAThreadAttribute.cs b/mcs/class/corlib/System/MTAThreadAttribute.cs
new file mode 100644 (file)
index 0000000..000931a
--- /dev/null
@@ -0,0 +1,19 @@
+//
+// System.MTAThreadAttribute.cs
+//
+// Author: Duncan Mak  (duncan@ximian.com)
+//
+// (C) Ximian, Inc.  http://www.ximian.com
+//
+
+namespace System
+{
+     [AttributeUsage (AttributeTargets.Method)]
+       public class MTAThreadAttribute : Attribute
+       {
+                  // Constructors
+                  public MTAThreadAttribute () : base ()
+                  {
+                  }
+       }
+}
diff --git a/mcs/class/corlib/System/ObsoleteAttribute.cs b/mcs/class/corlib/System/ObsoleteAttribute.cs
new file mode 100644 (file)
index 0000000..a2f10fe
--- /dev/null
@@ -0,0 +1,38 @@
+//
+// System.ObsoleteAttribute.cs
+//
+// Author: Duncan Mak  (duncan@ximian.com)
+//
+// (C) Ximian, Inc.  http://www.ximian.com
+//
+
+namespace System
+{
+     [AttributeUsage (AttributeTargets.Class | AttributeTargets.Struct |
+                                 AttributeTargets.Enum | AttributeTargets.Constructor |
+                                 AttributeTargets.Method | AttributeTargets.Property |
+                                 AttributeTargets.Field | AttributeTargets.Event |
+                                 AttributeTargets.Interface | AttributeTargets.Delegate)]
+       [Serializable]
+       public class ObsoleteAttribute : Attribute
+       {
+                  private string Message;
+                  private bool IsError = false;
+                  
+                  // Constructors
+                  public ObsoleteAttribute () : base ()
+                  {
+                  }
+
+                  public ObsoleteAttribute (string message)
+                  {
+                                Message = message;
+                  }
+
+                  public ObsoleteAttribute (string message, bool error)
+                  {
+                                Message = message;
+                                IsError = error;
+                  }
+       }
+}
diff --git a/mcs/class/corlib/System/PlatformNotSupportedException.cs b/mcs/class/corlib/System/PlatformNotSupportedException.cs
new file mode 100644 (file)
index 0000000..c7ef092
--- /dev/null
@@ -0,0 +1,42 @@
+//     
+// System.PlatformNotSupportedException.cs
+//
+// Author:
+//     Duncan Mak (duncan@ximian.com)
+//
+// 2002 (C) Ximian, Inc. http://www.ximian.com
+//
+
+using System;
+using System.Globalization;
+using System.Runtime.Serialization;
+
+namespace System
+{
+          [Serializable]
+          public class PlatformNotSupportedException : SystemException
+          {
+                        // Constructors
+                        public PlatformNotSupportedException ()
+                                   : base (Locale.GetText ("This platform is not supported."))
+                        {
+                        }
+
+                        public PlatformNotSupportedException (string message)
+                                   : base (message)
+                        {
+                        }
+                        
+                        public PlatformNotSupportedException (SerializationInfo info,
+                                   StreamingContext context)
+                                   : base (info, context)
+                        {
+                        }
+
+                        public PlatformNotSupportedException (string message, Exception innerException)
+                                   :base (message, innerException)
+                        {
+                        }
+                                   
+          }
+}
diff --git a/mcs/class/corlib/System/STAThreadAttribute.cs b/mcs/class/corlib/System/STAThreadAttribute.cs
new file mode 100644 (file)
index 0000000..97e627e
--- /dev/null
@@ -0,0 +1,19 @@
+//
+// System.STAThreadAttribute.cs
+//
+// Author: Duncan Mak  (duncan@ximian.com)
+//
+// (C) Ximian, Inc.  http://www.ximian.com
+//
+
+namespace System
+{
+     [AttributeUsage (AttributeTargets.Method)]
+       public class STAThreadAttribute : Attribute
+       {
+                  // Constructors
+                  public STAThreadAttribute () : base ()
+                  {
+                  }
+       }
+}
diff --git a/mcs/class/corlib/System/ThreadStaticAttribute.cs b/mcs/class/corlib/System/ThreadStaticAttribute.cs
new file mode 100644 (file)
index 0000000..4d235cd
--- /dev/null
@@ -0,0 +1,19 @@
+//
+// System.ThreadStaticAttribute.cs
+//
+// Author: Duncan Mak  (duncan@ximian.com)
+//
+// (C) Ximian, Inc.  http://www.ximian.com
+//
+
+namespace System
+{
+     [AttributeUsage (AttributeTargets.Field)]
+       public class ThreadStaticAttribute : Attribute
+       {
+                  // Constructors
+                  public ThreadStaticAttribute () : base ()
+                  {
+                  }
+       }
+}