2003-11-14 Zoltan Varga <vargaz@freemail.hu>
authorZoltan Varga <vargaz@gmail.com>
Fri, 14 Nov 2003 16:20:02 +0000 (16:20 -0000)
committerZoltan Varga <vargaz@gmail.com>
Fri, 14 Nov 2003 16:20:02 +0000 (16:20 -0000)
* AssemblyNameFlags.cs MethodAttributes.cs: Add new enumerated values
from NET 1.1.

* *.cs: Add missing attributes.

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

17 files changed:
mcs/class/corlib/System.Reflection/Assembly.cs
mcs/class/corlib/System.Reflection/AssemblyNameFlags.cs
mcs/class/corlib/System.Reflection/Binder.cs
mcs/class/corlib/System.Reflection/ChangeLog
mcs/class/corlib/System.Reflection/ConstructorInfo.cs
mcs/class/corlib/System.Reflection/EventAttributes.cs
mcs/class/corlib/System.Reflection/EventInfo.cs
mcs/class/corlib/System.Reflection/FieldAttributes.cs
mcs/class/corlib/System.Reflection/FieldInfo.cs
mcs/class/corlib/System.Reflection/IReflect.cs
mcs/class/corlib/System.Reflection/MemberInfo.cs
mcs/class/corlib/System.Reflection/MemberTypes.cs
mcs/class/corlib/System.Reflection/MethodAttributes.cs
mcs/class/corlib/System.Reflection/MethodBase.cs
mcs/class/corlib/System.Reflection/MethodImplAttributes.cs
mcs/class/corlib/System.Reflection/MethodInfo.cs
mcs/class/corlib/System.Reflection/PropertyInfo.cs

index 5be72af2c25552c27db0be11b649d35397e57ae5..a19741e4199f74e056e2162efe57bf3ae3d8f114 100644 (file)
@@ -20,6 +20,7 @@ using System.Collections;
 namespace System.Reflection {
 
        [Serializable]
+       [ClassInterface(ClassInterfaceType.AutoDual)]
        public class Assembly : System.Reflection.ICustomAttributeProvider,
                System.Security.IEvidenceFactory, System.Runtime.Serialization.ISerializable {
                private IntPtr _mono_assembly;
index daa3cd971483eb4875ceb45849a6af20ffe9a487..3c59d33add62329bb303239c69f0a0a18ef8c4ff 100755 (executable)
@@ -28,6 +28,10 @@ namespace System.Reflection {
                ///  Perhaps this has changed since the beta.
                /// </summary>
                PublicKey = 1,
+
+#if NET_1_1
+               Retargetable = 256
+#endif
        } // AssemblyNameFlags
 
 } // System.Reflection
index c1a914fc729b101dd3980f79f24c0cd8f4331681..1c930654f7e6663cdea0daaddf4faba7b4715ae5 100644 (file)
@@ -6,10 +6,12 @@
 // (C) Ximian, Inc. 2001 - 2002
 
 using System.Globalization;
+using System.Runtime.InteropServices;
 
 namespace System.Reflection
 {
        [Serializable]
+       [ClassInterface(ClassInterfaceType.AutoDual)]
        public abstract class Binder
        {
                protected Binder () {}
index 1f1063f1542b1ed113a326f3cb40510dbf8bbda3..d6aef6d8fe2005e2bd23d580eaeb4bf2ca5c584f 100644 (file)
@@ -1,3 +1,10 @@
+2003-11-14  Zoltan Varga  <vargaz@freemail.hu>
+
+       * AssemblyNameFlags.cs MethodAttributes.cs: Add new enumerated values 
+       from NET 1.1.
+       
+       * *.cs: Add missing attributes.
+
 2003-11-11  Todd Berman  <tberman@gentoo.org>
 
        * AssemblyName.cs (FullName): Fixed to include a proper PublicKeyToken.
index 936f50ef8df15945652252380e6f711a115b7e9c..d97906906726ef994b8cbe96de07ff68f5d557c2 100644 (file)
 using System;
 using System.Reflection;
 using System.Globalization;
+using System.Runtime.InteropServices;
 
 namespace System.Reflection {
+
        [Serializable]
+       [ClassInterface(ClassInterfaceType.AutoDual)]
        public abstract class ConstructorInfo : MethodBase {
                public static readonly string ConstructorName = ".ctor";
                public static readonly string TypeConstructorName = ".cctor";
index efb1154e21ccd631c80b2a3a22b1a85d33eb4d07..7d18940423d75fb21aa6baa4eb5f1679953ec34e 100755 (executable)
@@ -15,6 +15,7 @@ namespace System.Reflection {
 
        /// <summary>
        /// </summary>
+       [Flags]
        public enum EventAttributes {
 
                /// <summary>
index 3f4c5963f90313ab0888c80c39ae4c4a4e39f653..626ecbc1f39ae953526b9276eb98725d60930d2f 100755 (executable)
@@ -9,8 +9,11 @@
 
 using System;
 using System.Reflection;
+using System.Runtime.InteropServices;
 
 namespace System.Reflection {
+
+       [ClassInterface(ClassInterfaceType.AutoDual)]
        public abstract class EventInfo : MemberInfo {
 
                public abstract EventAttributes Attributes {get;}
index 5462fc2b1021c31625944ceb22fd9d5ddac44096..f37118c1bba2bb673809c00e25d72cdae5490074 100755 (executable)
@@ -15,6 +15,7 @@ namespace System.Reflection {
 
        /// <summary>
        /// </summary>
+       [Flags]
        public enum FieldAttributes {
 
                /// <summary>
index 136fabf05355cde0187516e65df514f81ff969cd..aa9028df7fecb4d33b55094afb42dacfed0cbc60 100755 (executable)
@@ -14,10 +14,12 @@ using System.Reflection;
 using System.Reflection.Emit;
 using System.Globalization;
 using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
 
 namespace System.Reflection {
 
        [Serializable]
+       [ClassInterface(ClassInterfaceType.AutoDual)]
        public abstract class FieldInfo : MemberInfo {
 
                public abstract FieldAttributes Attributes {get;}
index e89c3298a69a2291dab3b79b857f0b03678b3f4d..a7013ffb5d4450be69553a901c1830b152614afe 100755 (executable)
@@ -9,10 +9,13 @@
 // TODO: Mucho left to implement.
 //
 
+using System;
 using System.Globalization;
+using System.Runtime.InteropServices;
 
 namespace System.Reflection {
 
+       [Guid("AFBF15E5-C37C-11d2-B88E-00A0C9B471B8")]
        public interface IReflect {
 
                Type UnderlyingSystemType {
index 9e3c52b80383c7d00b288e5612ce67f34c39aeae..d39898e118166c9781f0d285a497e5b006ad8205 100755 (executable)
@@ -9,9 +9,12 @@
 // TODO: Mucho left to implement.
 //
 
+using System.Runtime.InteropServices;
+
 namespace System.Reflection {
 
        [Serializable]
+       [ClassInterface(ClassInterfaceType.AutoDual)]
        public abstract class MemberInfo : ICustomAttributeProvider {
 
                public abstract Type DeclaringType {
index 00a1234ef36c08bbf43003d7a5c95c7934a1dc30..3c50ec869357b296ffc683b26f48b343764a177b 100755 (executable)
@@ -15,6 +15,7 @@ namespace System.Reflection {
 
        /// <summary>
        /// </summary>
+       [Flags]
        public enum MemberTypes {
 
                /// <summary>
index 51ac6f18a6a685f2c8c990f39fcab4d8b1829868..ef60d21ca379b029aac7bbfeb39d53d8e98163a3 100755 (executable)
@@ -15,6 +15,7 @@ namespace System.Reflection {
 
        /// <summary>
        /// </summary>
+       [Flags]
        public enum MethodAttributes {
 
                /// <summary>
@@ -69,6 +70,12 @@ namespace System.Reflection {
                /// </summary>
                VtableLayoutMask = 256,
 
+#if NET_1_1
+               /// <summary>
+               /// </summary>          
+               CheckAccessOnOverride = 512,
+#endif
+
                /// <summary>
                /// </summary>
                ReuseSlot = 0,
index fda971d8d95e3609f808d4eae720a608be74cfc0..3892affa8662f9c7ccb0bb1ed045d5fedb4153a0 100644 (file)
@@ -11,10 +11,12 @@ using System;
 using System.Globalization;
 using System.Reflection.Emit;
 using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
 
 namespace System.Reflection {
 
        [Serializable]
+       [ClassInterface(ClassInterfaceType.AutoDual)]
        public abstract class MethodBase: MemberInfo {
 
                [MethodImplAttribute (MethodImplOptions.InternalCall)]
index aaa243ab6d3214341f79e32f9d05982bdedabf2b..f966ce4a9589ff2d05878883036aa355dfb8d380 100755 (executable)
@@ -15,6 +15,7 @@ namespace System.Reflection {
 
        /// <summary>
        /// </summary>
+       [Flags]
        public enum MethodImplAttributes {
 
                /// <summary>
index 4bcd0c580a548aff9e1124a2826a52ce5d86f5d7..e069139a3460f37cda8ef272cc2fb0276d455db2 100644 (file)
@@ -9,10 +9,12 @@
 
 using System;
 using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
 
 namespace System.Reflection {
 
        [Serializable]
+       [ClassInterface(ClassInterfaceType.AutoDual)]
        public abstract class MethodInfo: MethodBase {
 
                public abstract MethodInfo GetBaseDefinition();
index cad58c2a604cf7e7399e283798c378dcb1233b43..feaa6eded62388f5b36d40c90074d61802a0b149 100755 (executable)
 using System;
 using System.Reflection;
 using System.Globalization;
+using System.Runtime.InteropServices;
 
 namespace System.Reflection {
        [Serializable]
+       [ClassInterface(ClassInterfaceType.AutoDual)]
        public abstract class PropertyInfo : MemberInfo {
 
                public abstract PropertyAttributes Attributes { get; }