2002-07-23 Duncan Mak <duncan@ximian.com>
authorDuncan Mak <duncan@mono-cvs.ximian.com>
Tue, 23 Jul 2002 03:33:14 +0000 (03:33 -0000)
committerDuncan Mak <duncan@mono-cvs.ximian.com>
Tue, 23 Jul 2002 03:33:14 +0000 (03:33 -0000)
* AccessedThroughPropertyAttribute.cs:
* CompilationRelaxationsAttribute.cs:
* CompilerGlobalScopeAttribute.cs:
* CustomConstantAttribute.cs:
* DateTimeConstantAttribute.cs:
* DecimalConstantAttribute.cs:
* DiscardableAttribute.cs:
* IDispatchConstantAttribute.cs:
* IUnknownConstantAttribute.cs:
* RequiredAttributeAttribute.cs: Added all the missing Attributes

* IsVolatile.cs: Added to CVS.

* MethodImplOptions.cs: Added the PreserveSig flag.

* IRemotingFormatter.cs: Added to CVS.

* IMethodMessage.cs: IMethodMessage inherits from IMessage.

* list:
* unix.args: Added new Attributes in System.Runtim.CompilerServices.

* System.Runtime.Remoting.Proxies/ProxyAttribute.cs: Added.

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

20 files changed:
mcs/class/corlib/ChangeLog
mcs/class/corlib/System.Runtime.CompilerServices/AccessedThroughPropertyAttribute.cs [new file with mode: 0644]
mcs/class/corlib/System.Runtime.CompilerServices/ChangeLog
mcs/class/corlib/System.Runtime.CompilerServices/CompilationRelaxationsAttribute.cs [new file with mode: 0644]
mcs/class/corlib/System.Runtime.CompilerServices/CompilerGlobalScopeAttribute.cs [new file with mode: 0644]
mcs/class/corlib/System.Runtime.CompilerServices/CustomConstantAttribute.cs [new file with mode: 0644]
mcs/class/corlib/System.Runtime.CompilerServices/DateTimeConstantAttribute.cs [new file with mode: 0644]
mcs/class/corlib/System.Runtime.CompilerServices/DecimalConstantAttribute.cs [new file with mode: 0644]
mcs/class/corlib/System.Runtime.CompilerServices/DiscardableAttribute.cs [new file with mode: 0644]
mcs/class/corlib/System.Runtime.CompilerServices/IDispatchConstantAttribute.cs [new file with mode: 0644]
mcs/class/corlib/System.Runtime.CompilerServices/IUnknownConstantAttribute.cs [new file with mode: 0644]
mcs/class/corlib/System.Runtime.CompilerServices/IsVolatile.cs [new file with mode: 0644]
mcs/class/corlib/System.Runtime.CompilerServices/MethodImplOptions.cs
mcs/class/corlib/System.Runtime.CompilerServices/RequiredAttributeAttribute.cs [new file with mode: 0644]
mcs/class/corlib/System.Runtime.Remoting.Messaging/ChangeLog
mcs/class/corlib/System.Runtime.Remoting.Messaging/IMethodMessage.cs
mcs/class/corlib/System.Runtime.Remoting.Messaging/IRemotingFormatter.cs [new file with mode: 0644]
mcs/class/corlib/System.Runtime.Remoting.Proxies/ProxyAttribute.cs [new file with mode: 0644]
mcs/class/corlib/list
mcs/class/corlib/unix.args

index dc4a65b70f114c7e1694600a0f8eb1986ea9f093..29a5a97d945e8e2a63dafbb422b4be86b63f4bee 100644 (file)
@@ -1,3 +1,10 @@
+2002-07-23  Duncan Mak  <duncan@ximian.com>
+
+       * list: 
+       * unix.args: Added new Attributes in System.Runtim.CompilerServices.
+
+       * System.Runtime.Remoting.Proxies/ProxyAttribute.cs: Added.
+
 2002-07-22  Tim Coleman <tim@timcoleman.com>
        * list:
        * unix.args:
diff --git a/mcs/class/corlib/System.Runtime.CompilerServices/AccessedThroughPropertyAttribute.cs b/mcs/class/corlib/System.Runtime.CompilerServices/AccessedThroughPropertyAttribute.cs
new file mode 100644 (file)
index 0000000..e324810
--- /dev/null
@@ -0,0 +1,24 @@
+//
+// System.Runtime.CompilerServices.AccessedThroughPropertyAttribute.cs
+//
+// Author: Duncan Mak  (duncan@ximian.com)
+//
+// (C) Copyright, Ximian Inc.
+
+using System;
+
+namespace System.Runtime.CompilerServices {
+
+       public sealed class AccessedThroughPropertyAttribute : Attribute
+       {
+               string name;
+               public AccessedThroughPropertyAttribute (string propertyName)
+               {
+                       name = propertyName;
+               }
+
+               public string PropertyName {
+                       get { return name; }
+               }
+       }
+}
index f59f55bfc2ef475953863778e30363a2c48f0194..1354ca98662d2fb502642bd30838a07fddb532c6 100644 (file)
@@ -1,3 +1,20 @@
+2002-07-23  Duncan Mak  <duncan@ximian.com>\r
+\r
+       * AccessedThroughPropertyAttribute.cs: \r
+       * CompilationRelaxationsAttribute.cs: \r
+       * CompilerGlobalScopeAttribute.cs: \r
+       * CustomConstantAttribute.cs: \r
+       * DateTimeConstantAttribute.cs: \r
+       * DecimalConstantAttribute.cs: \r
+       * DiscardableAttribute.cs: \r
+       * IDispatchConstantAttribute.cs: \r
+       * IUnknownConstantAttribute.cs: \r
+       * RequiredAttributeAttribute.cs: Added all the missing Attributes\r
+\r
+       * IsVolatile.cs: Added to CVS.\r
+\r
+       * MethodImplOptions.cs: Added the PreserveSig flag.\r
+\r
 2002-04-15  Dan Lewis <dihlewis@yahoo.co.uk>\r
 \r
        * MethodImplAttribute.cs: added constructor usage.\r
diff --git a/mcs/class/corlib/System.Runtime.CompilerServices/CompilationRelaxationsAttribute.cs b/mcs/class/corlib/System.Runtime.CompilerServices/CompilationRelaxationsAttribute.cs
new file mode 100644 (file)
index 0000000..d4df4b7
--- /dev/null
@@ -0,0 +1,25 @@
+//
+// System.Runtime.CompilerServices.CompilationRelaxationsAttribute.cs
+//
+// Author: Duncan Mak  (duncan@ximian.com)
+//
+// (C) Copyright, Ximian Inc.
+
+using System;
+
+namespace System.Runtime.CompilerServices {
+
+       [AttributeUsage (AttributeTargets.Module)]
+       public sealed class CompilationRelaxationsAttribute : Attribute
+       {
+               int relax;
+               public CompilationRelaxationsAttribute (int relaxations)
+               {
+                       relax = relaxations;
+               }
+
+               public int Relaxations {
+                       get { return relax; }
+               }
+       }
+}
diff --git a/mcs/class/corlib/System.Runtime.CompilerServices/CompilerGlobalScopeAttribute.cs b/mcs/class/corlib/System.Runtime.CompilerServices/CompilerGlobalScopeAttribute.cs
new file mode 100644 (file)
index 0000000..9d3f91d
--- /dev/null
@@ -0,0 +1,19 @@
+//
+// System.Runtime.CompilerServices.CompilerGlobalScopeAttribute.cs
+//
+// Author: Duncan Mak  (duncan@ximian.com)
+//
+// (C) Copyright, Ximian Inc.
+
+using System;
+
+namespace System.Runtime.CompilerServices {
+
+       [AttributeUsage (AttributeTargets.Class)] [Serializable]
+       public class CompilerGlobalScopeAttribute : Attribute
+       {
+               protected CompilerGlobalScopeAttribute ()
+               {
+               }
+       }
+}
diff --git a/mcs/class/corlib/System.Runtime.CompilerServices/CustomConstantAttribute.cs b/mcs/class/corlib/System.Runtime.CompilerServices/CustomConstantAttribute.cs
new file mode 100644 (file)
index 0000000..cdfadad
--- /dev/null
@@ -0,0 +1,21 @@
+//
+// System.Runtime.CompilerServices.CustomConstantAttribute.cs
+//
+// Author: Duncan Mak  (duncan@ximian.com)
+//
+// (C) Copyright, Ximian Inc.
+
+using System;
+
+namespace System.Runtime.CompilerServices {
+
+       [AttributeUsage (AttributeTargets.Class)] [Serializable]
+       public abstract class CustomConstantAttribute : Attribute
+       {
+               protected CustomConstantAttribute ()
+               {
+               }
+
+               public abstract object Value { get; }
+       }
+}
diff --git a/mcs/class/corlib/System.Runtime.CompilerServices/DateTimeConstantAttribute.cs b/mcs/class/corlib/System.Runtime.CompilerServices/DateTimeConstantAttribute.cs
new file mode 100644 (file)
index 0000000..65d2801
--- /dev/null
@@ -0,0 +1,27 @@
+//
+// System.Runtime.CompilerServices.DateTimeConstantAttribute.cs
+//
+// Author: Duncan Mak  (duncan@ximian.com)
+//
+// (C) Copyright, Ximian Inc.
+
+using System;
+
+namespace System.Runtime.CompilerServices {
+
+       [Serializable]
+       [AttributeUsage (AttributeTargets.Field | AttributeTargets.Parameter)]
+       public class DateTimeConstantAttribute : CustomConstantAttribute
+       {
+               long ticks;
+               
+               public DateTimeConstantAttribute (long ticks)
+               {
+                       this.ticks = ticks;
+               }
+
+               public override object Value {
+                       get { return ticks; }
+               }
+       }
+}
diff --git a/mcs/class/corlib/System.Runtime.CompilerServices/DecimalConstantAttribute.cs b/mcs/class/corlib/System.Runtime.CompilerServices/DecimalConstantAttribute.cs
new file mode 100644 (file)
index 0000000..102823c
--- /dev/null
@@ -0,0 +1,35 @@
+//
+// System.Runtime.CompilerServices.DecimalConstantAttribute.cs
+//
+// Author: Duncan Mak  (duncan@ximian.com)
+//
+// (C) Copyright, Ximian Inc.
+
+using System;
+
+namespace System.Runtime.CompilerServices {
+
+       [Serializable] [CLSCompliant (false)]
+       [AttributeUsage (AttributeTargets.Field | AttributeTargets.Parameter)]
+       public class DecimalConstantAttribute : Attribute
+       {
+               byte scale;
+               bool sign;
+               int hi;
+               int mid;
+               int low;
+               
+               public DecimalConstantAttribute (byte scale, byte sign, uint hi, uint mid, uint low)
+               {
+                       this.scale = scale;
+                       this.sign  = Convert.ToBoolean (sign);
+                       this.hi    = (int) hi;
+                       this.mid   = (int) mid;
+                       this.low   = (int) low;
+               }
+
+               public Decimal Value {
+                       get { return new Decimal (low, mid, hi, sign, scale); }
+               }
+       }
+}
diff --git a/mcs/class/corlib/System.Runtime.CompilerServices/DiscardableAttribute.cs b/mcs/class/corlib/System.Runtime.CompilerServices/DiscardableAttribute.cs
new file mode 100644 (file)
index 0000000..2271065
--- /dev/null
@@ -0,0 +1,18 @@
+//
+// System.Runtime.CompilerServices.DiscardableAttribute.cs
+//
+// Author: Duncan Mak  (duncan@ximian.com)
+//
+// (C) Copyright, Ximian Inc.
+
+using System;
+
+namespace System.Runtime.CompilerServices {
+
+       public class DiscardableAttribute : Attribute
+       {
+               public DiscardableAttribute ()
+               {
+               }
+       }
+}
diff --git a/mcs/class/corlib/System.Runtime.CompilerServices/IDispatchConstantAttribute.cs b/mcs/class/corlib/System.Runtime.CompilerServices/IDispatchConstantAttribute.cs
new file mode 100644 (file)
index 0000000..ab603f9
--- /dev/null
@@ -0,0 +1,24 @@
+//
+// System.Runtime.CompilerServices.IDispatchConstantAttribute.cs
+//
+// Author: Duncan Mak  (duncan@ximian.com)
+//
+// (C) Copyright, Ximian Inc.
+
+using System;
+
+namespace System.Runtime.CompilerServices {
+
+       [Serializable]
+       [AttributeUsage (AttributeTargets.Field | AttributeTargets.Parameter)]
+       public class IDispatchConstantAttribute : CustomConstantAttribute
+       {
+               public IDispatchConstantAttribute ()
+               {
+               }
+
+               public override object Value {
+                       get { return null; } // this is correct.
+               }
+       }
+}
diff --git a/mcs/class/corlib/System.Runtime.CompilerServices/IUnknownConstantAttribute.cs b/mcs/class/corlib/System.Runtime.CompilerServices/IUnknownConstantAttribute.cs
new file mode 100644 (file)
index 0000000..bce7753
--- /dev/null
@@ -0,0 +1,24 @@
+//
+// System.Runtime.CompilerServices.IUnknownConstantAttribute.cs
+//
+// Author: Duncan Mak  (duncan@ximian.com)
+//
+// (C) Copyright, Ximian Inc.
+
+using System;
+
+namespace System.Runtime.CompilerServices {
+
+       [Serializable]
+       [AttributeUsage (AttributeTargets.Field | AttributeTargets.Parameter)]
+       public class IUnknownConstantAttribute : CustomConstantAttribute
+       {
+               public IUnknownConstantAttribute ()
+               {
+               }
+
+               public override object Value {
+                       get { return null; } // this is correct.
+               }
+       }
+}
diff --git a/mcs/class/corlib/System.Runtime.CompilerServices/IsVolatile.cs b/mcs/class/corlib/System.Runtime.CompilerServices/IsVolatile.cs
new file mode 100644 (file)
index 0000000..a6e2d9e
--- /dev/null
@@ -0,0 +1,14 @@
+//
+// System.Runtime.CompilerServices.IsVolatile.cs
+//
+// Author: Duncan Mak  (duncan@ximian.com)
+//
+// (C) Copyright, Ximian Inc.
+
+using System;
+
+namespace System.Runtime.CompilerServices {
+       public sealed class IsVolatile
+       {
+       }
+}
index 347c38569a421b1241fc568fe2895cbe59846669..45a98baeb79a4a5812a42e7e415741eeb181f556 100644 (file)
@@ -36,6 +36,11 @@ namespace System.Runtime.CompilerServices {
                /// <summary>
                /// </summary>
                NoInlining = 8,
+
+               /// <summary>
+               /// </summary>
+               PreserveSig = 128,
+
        } // MethodImplOptions
 
 } // System.Runtime.CompilerServices
diff --git a/mcs/class/corlib/System.Runtime.CompilerServices/RequiredAttributeAttribute.cs b/mcs/class/corlib/System.Runtime.CompilerServices/RequiredAttributeAttribute.cs
new file mode 100644 (file)
index 0000000..e9ce3e2
--- /dev/null
@@ -0,0 +1,25 @@
+//
+// System.Runtime.CompilerServices.RequiredAttributeAttribute.cs
+//
+// Author: Duncan Mak  (duncan@ximian.com)
+//
+// (C) Copyright, Ximian Inc.
+
+using System;
+
+namespace System.Runtime.CompilerServices {
+
+       [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct |
+                       AttributeTargets.Enum | AttributeTargets.Interface)]
+       [Serializable]
+       public sealed class RequiredAttributeAttribute : Attribute
+       {
+               public RequiredAttributeAttribute ()
+               {
+               }
+
+               public Type RequiredContract {
+                       get { throw new NotSupportedException (); }
+               }
+       }
+}
index f01e3ca8e9046a5ff0e2c79648a037ed2d2114e0..1ba73d5b75e137060185a141b637aa32ef1a716c 100644 (file)
@@ -1,3 +1,8 @@
+2002-07-23  Duncan Mak  <duncan@ximian.com>
+
+       * IRemotingFormatter.cs: Added to CVS.
+
+       * IMethodMessage.cs: IMethodMessage inherits from IMessage.
 
 Thu Apr 4 13:13:20 CEST 2002 Paolo Molaro <lupus@ximian.com>
 
index 49cadf428ec03cd82aa494dacdd71a6d6d5d263c..4bb334730221bf94a6aa8c4d6d00b2ec9261e3b5 100644 (file)
@@ -11,7 +11,7 @@ using System.Reflection;
 
 namespace System.Runtime.Remoting.Messaging {
 
-       public interface IMethodMessage {
+       public interface IMethodMessage : IMessage {
                int       ArgCount        {
                        get;
                }
diff --git a/mcs/class/corlib/System.Runtime.Remoting.Messaging/IRemotingFormatter.cs b/mcs/class/corlib/System.Runtime.Remoting.Messaging/IRemotingFormatter.cs
new file mode 100644 (file)
index 0000000..748113b
--- /dev/null
@@ -0,0 +1,18 @@
+//
+// System.Runtime.Remoting.Messaging.IRemotingFormatter..cs
+//
+// Author:
+//   Duncan Mak  (duncan@ximian.com)
+//
+// (C) Ximian, Inc.  http://www.ximian.com
+//
+
+using System.Reflection;
+
+namespace System.Runtime.Remoting.Messaging {
+
+       public interface IRemotingFormatter : IFormatter {
+               object Deserialize (Stream serializationStream, HeaderHandler handler);
+               void Serialize (Stream serializationStream, object graph, Header [] handlers); 
+       }
+}
diff --git a/mcs/class/corlib/System.Runtime.Remoting.Proxies/ProxyAttribute.cs b/mcs/class/corlib/System.Runtime.Remoting.Proxies/ProxyAttribute.cs
new file mode 100644 (file)
index 0000000..d65726d
--- /dev/null
@@ -0,0 +1,47 @@
+//
+// System.Runtime.Remoting.Proxies.ProxyAttribute.cs
+//
+// Author: Duncan Mak  (duncan@ximian.com)
+//
+// Copyright (C) Ximian, Inc 2002.
+//
+
+using System;
+using System.Runtime.Remoting;
+using System.Runtime.Remoting.Activation;
+using System.Runtime.Remoting.Contexts;
+
+namespace System.Runtime.Remoting.Proxies {
+
+       [AttributeUsage (AttributeTargets.Class)]
+       public class ProxyAttribute : Attribute
+       {
+               public ProxyAttribute ()
+               {
+               }
+
+               [MonoTODO]
+               public virtual MarshalByRefObject CreateInstance (Type serverType)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public virtual RealProxy CreateProxy (ObjRef objref, Type serverType, object serverObject, Context serverContext)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public void GetPropertiesForNewContext (IConstructionCallMessage mesg)
+               {
+               }
+
+               [MonoTODO]
+               public bool IsContextOK (Context ctx, IConstructionCallMessage msg)
+               {
+                       throw new NotImplementedException ();
+               }
+       }
+}
+
index 7c68f4c3cdc8a4ca0b91748d685d73ab8f395d6b..d43bbf464fc6e612957df49476d40f592e8d2b27 100755 (executable)
@@ -206,10 +206,19 @@ System.Resources/ResourceReader.cs
 System.Resources/ResourceSet.cs
 System.Resources/ResourceWriter.cs
 System.Resources/SatelliteContractVersionAttribute.cs
+System.Runtime.CompilerServices/AccessedThroughPropertyAttribute.cs
+System.Runtime.CompilerServices/CompilationRelaxationsAttribute.cs
+System.Runtime.CompilerServices/CustomConstantAttribute.cs
+System.Runtime.CompilerServices/DateTimeConstantAttribute.cs
+System.Runtime.CompilerServices/DecimalConstantAttribute.cs
+System.Runtime.CompilerServices/DiscardableAttribute.cs
+System.Runtime.CompilerServices/IDispatchConstantAttribute.cs
+System.Runtime.CompilerServices/IUnknownConstantAttribute.cs
 System.Runtime.CompilerServices/IndexerNameAttribute.cs
 System.Runtime.CompilerServices/MethodCodeType.cs
 System.Runtime.CompilerServices/MethodImplAttribute.cs
 System.Runtime.CompilerServices/MethodImplOptions.cs
+System.Runtime.CompilerServices/RequiredAttributeAttribute.cs
 System.Runtime.CompilerServices/RuntimeHelpers.cs
 System.Runtime.InteropServices/AssemblyRegistrationFlags.cs
 System.Runtime.InteropServices/CallingConvention.cs
index 8a0e9595fcab4f87da1c9c56a2f6f03cb05b741f..530cd8b427411a39d96527e535fd332a6d51606f 100755 (executable)
@@ -357,10 +357,19 @@ System.Resources/ResourceReader.cs
 System.Resources/ResourceSet.cs
 System.Resources/ResourceWriter.cs
 System.Resources/SatelliteContractVersionAttribute.cs
+System.Runtime.CompilerServices/AccessedThroughPropertyAttribute.cs
+System.Runtime.CompilerServices/CompilationRelaxationsAttribute.cs
+System.Runtime.CompilerServices/CustomConstantAttribute.cs
+System.Runtime.CompilerServices/DateTimeConstantAttribute.cs
+System.Runtime.CompilerServices/DecimalConstantAttribute.cs
+System.Runtime.CompilerServices/DiscardableAttribute.cs
+System.Runtime.CompilerServices/IDispatchConstantAttribute.cs
+System.Runtime.CompilerServices/IUnknownConstantAttribute.cs
 System.Runtime.CompilerServices/IndexerNameAttribute.cs
 System.Runtime.CompilerServices/MethodCodeType.cs
 System.Runtime.CompilerServices/MethodImplAttribute.cs
 System.Runtime.CompilerServices/MethodImplOptions.cs
+System.Runtime.CompilerServices/RequiredAttributeAttribute.cs
 System.Runtime.CompilerServices/RuntimeHelpers.cs
 System.Runtime.InteropServices/AssemblyRegistrationFlags.cs
 System.Runtime.InteropServices/AutomationProxyAttribute.cs
@@ -454,10 +463,12 @@ System.Runtime.Remoting.Messaging/IMessageSink.cs
 System.Runtime.Remoting.Messaging/IMethodCallMessage.cs
 System.Runtime.Remoting.Messaging/IMethodMessage.cs
 System.Runtime.Remoting.Messaging/IMethodReturnMessage.cs
+System.Runtime.Remoting.Messaging/IRemotingFormatter.cs
 System.Runtime.Remoting.Messaging/LogicalCallContext.cs
 System.Runtime.Remoting.Messaging/MonoMethodMessage.cs
 System.Runtime.Remoting.Messaging/ReturnMessage.cs
 System.Runtime.Remoting.Proxies/RealProxy.cs
+System.Runtime.Remoting.Proxies/ProxyAttribute.cs
 System.Runtime.Serialization/IDeserializationCallback.cs
 System.Runtime.Serialization/IFormatter.cs
 System.Runtime.Serialization/IFormatterConverter.cs