Author: zoltan
Date: 2005-06-07 08:36:45 -0400 (Tue, 07 Jun 2005)
New Revision: 45571

Modified:
   trunk/mcs/class/corlib/System.Reflection/AssemblyAlgorithmIdAttribute.cs
   trunk/mcs/class/corlib/System.Reflection/AssemblyCompanyAttribute.cs
   trunk/mcs/class/corlib/System.Reflection/AssemblyConfigurationAttribute.cs
   trunk/mcs/class/corlib/System.Reflection/AssemblyCopyrightAttribute.cs
   trunk/mcs/class/corlib/System.Reflection/AssemblyCultureAttribute.cs
   trunk/mcs/class/corlib/System.Reflection/AssemblyDefaultAliasAttribute.cs
   trunk/mcs/class/corlib/System.Reflection/AssemblyDelaySignAttribute.cs
   trunk/mcs/class/corlib/System.Reflection/AssemblyDescriptionAttribute.cs
   trunk/mcs/class/corlib/System.Reflection/AssemblyFileVersionAttribute.cs
   trunk/mcs/class/corlib/System.Reflection/AssemblyFlagsAttribute.cs
   
trunk/mcs/class/corlib/System.Reflection/AssemblyInformationalVersionAttribute.cs
   trunk/mcs/class/corlib/System.Reflection/AssemblyKeyFileAttribute.cs
   trunk/mcs/class/corlib/System.Reflection/AssemblyKeyNameAttribute.cs
   trunk/mcs/class/corlib/System.Reflection/AssemblyNameFlags.cs
   trunk/mcs/class/corlib/System.Reflection/AssemblyProductAttribute.cs
   trunk/mcs/class/corlib/System.Reflection/AssemblyTitleAttribute.cs
   trunk/mcs/class/corlib/System.Reflection/AssemblyTradeMarkAttribute.cs
   trunk/mcs/class/corlib/System.Reflection/AssemblyVersionAttribute.cs
   trunk/mcs/class/corlib/System.Reflection/ChangeLog
   trunk/mcs/class/corlib/System.Reflection/ConstructorInfo.cs
   trunk/mcs/class/corlib/System.Reflection/FieldInfo.cs
   trunk/mcs/class/corlib/System.Reflection/InterfaceMapping.cs
   trunk/mcs/class/corlib/System.Reflection/MethodImplAttributes.cs
   trunk/mcs/class/corlib/System.Reflection/MonoField.cs
   trunk/mcs/class/corlib/System.Reflection/ParameterInfo.cs
   trunk/mcs/class/corlib/System.Reflection/Pointer.cs
   trunk/mcs/class/corlib/System.Reflection/PortableExecutableKinds.cs
   trunk/mcs/class/corlib/System.Reflection/ProcessorArchitecture.cs
   trunk/mcs/class/corlib/System.Reflection/TypeDelegator.cs
Log:
2005-06-07  Zoltan Varga  <[EMAIL PROTECTED]>

        * *.cs: Updates for net 2.0 beta 2.


Modified: 
trunk/mcs/class/corlib/System.Reflection/AssemblyAlgorithmIdAttribute.cs
===================================================================
--- trunk/mcs/class/corlib/System.Reflection/AssemblyAlgorithmIdAttribute.cs    
2005-06-07 12:18:57 UTC (rev 45570)
+++ trunk/mcs/class/corlib/System.Reflection/AssemblyAlgorithmIdAttribute.cs    
2005-06-07 12:36:45 UTC (rev 45571)
@@ -37,8 +37,10 @@
 {
 #if NET_2_0
        [ComVisible (true)]
+       [AttributeUsage (AttributeTargets.Assembly, Inherited=false)]
+#else
+       [AttributeUsage (AttributeTargets.Assembly)]
 #endif
-       [AttributeUsage (AttributeTargets.Assembly)]
        public sealed class AssemblyAlgorithmIdAttribute : Attribute
        {
                // Field

Modified: trunk/mcs/class/corlib/System.Reflection/AssemblyCompanyAttribute.cs
===================================================================
--- trunk/mcs/class/corlib/System.Reflection/AssemblyCompanyAttribute.cs        
2005-06-07 12:18:57 UTC (rev 45570)
+++ trunk/mcs/class/corlib/System.Reflection/AssemblyCompanyAttribute.cs        
2005-06-07 12:36:45 UTC (rev 45571)
@@ -36,8 +36,10 @@
 {
 #if NET_2_0
        [ComVisible (true)]
+       [AttributeUsage (AttributeTargets.Assembly, Inherited=false)]
+#else
+       [AttributeUsage (AttributeTargets.Assembly)]
 #endif
-       [AttributeUsage (AttributeTargets.Assembly)]
        public sealed class AssemblyCompanyAttribute : Attribute
        {
                // Field

Modified: 
trunk/mcs/class/corlib/System.Reflection/AssemblyConfigurationAttribute.cs
===================================================================
--- trunk/mcs/class/corlib/System.Reflection/AssemblyConfigurationAttribute.cs  
2005-06-07 12:18:57 UTC (rev 45570)
+++ trunk/mcs/class/corlib/System.Reflection/AssemblyConfigurationAttribute.cs  
2005-06-07 12:36:45 UTC (rev 45571)
@@ -36,8 +36,10 @@
 {
 #if NET_2_0
        [ComVisible (true)]
+       [AttributeUsage (AttributeTargets.Assembly, Inherited=false)]
+#else
+       [AttributeUsage (AttributeTargets.Assembly)]
 #endif
-       [AttributeUsage (AttributeTargets.Assembly)]
        public sealed class AssemblyConfigurationAttribute : Attribute
        {
                // Field

Modified: trunk/mcs/class/corlib/System.Reflection/AssemblyCopyrightAttribute.cs
===================================================================
--- trunk/mcs/class/corlib/System.Reflection/AssemblyCopyrightAttribute.cs      
2005-06-07 12:18:57 UTC (rev 45570)
+++ trunk/mcs/class/corlib/System.Reflection/AssemblyCopyrightAttribute.cs      
2005-06-07 12:36:45 UTC (rev 45571)
@@ -36,8 +36,10 @@
 {
 #if NET_2_0
        [ComVisible (true)]
+       [AttributeUsage (AttributeTargets.Assembly, Inherited=false)]
+#else
+       [AttributeUsage (AttributeTargets.Assembly)]
 #endif
-       [AttributeUsage (AttributeTargets.Assembly)]
        public sealed class AssemblyCopyrightAttribute : Attribute
        {
                // Field

Modified: trunk/mcs/class/corlib/System.Reflection/AssemblyCultureAttribute.cs
===================================================================
--- trunk/mcs/class/corlib/System.Reflection/AssemblyCultureAttribute.cs        
2005-06-07 12:18:57 UTC (rev 45570)
+++ trunk/mcs/class/corlib/System.Reflection/AssemblyCultureAttribute.cs        
2005-06-07 12:36:45 UTC (rev 45571)
@@ -36,8 +36,10 @@
 {
 #if NET_2_0
        [ComVisible (true)]
+       [AttributeUsage (AttributeTargets.Assembly, Inherited=false)]
+#else
+       [AttributeUsage (AttributeTargets.Assembly)]
 #endif
-       [AttributeUsage (AttributeTargets.Assembly)]
        public sealed class AssemblyCultureAttribute : Attribute
        {
                // Field

Modified: 
trunk/mcs/class/corlib/System.Reflection/AssemblyDefaultAliasAttribute.cs
===================================================================
--- trunk/mcs/class/corlib/System.Reflection/AssemblyDefaultAliasAttribute.cs   
2005-06-07 12:18:57 UTC (rev 45570)
+++ trunk/mcs/class/corlib/System.Reflection/AssemblyDefaultAliasAttribute.cs   
2005-06-07 12:36:45 UTC (rev 45571)
@@ -36,8 +36,10 @@
 {
 #if NET_2_0
        [ComVisible (true)]
+       [AttributeUsage (AttributeTargets.Assembly, Inherited=false)]
+#else
+       [AttributeUsage (AttributeTargets.Assembly)]
 #endif
-       [AttributeUsage (AttributeTargets.Assembly)]
        public sealed class AssemblyDefaultAliasAttribute : Attribute
        {
                // Field

Modified: trunk/mcs/class/corlib/System.Reflection/AssemblyDelaySignAttribute.cs
===================================================================
--- trunk/mcs/class/corlib/System.Reflection/AssemblyDelaySignAttribute.cs      
2005-06-07 12:18:57 UTC (rev 45570)
+++ trunk/mcs/class/corlib/System.Reflection/AssemblyDelaySignAttribute.cs      
2005-06-07 12:36:45 UTC (rev 45571)
@@ -35,8 +35,10 @@
 {
 #if NET_2_0
        [ComVisible (true)]
+       [AttributeUsage (AttributeTargets.Assembly, Inherited=false)]
+#else
+       [AttributeUsage (AttributeTargets.Assembly)]
 #endif
-       [AttributeUsage (AttributeTargets.Assembly)]
        public sealed class AssemblyDelaySignAttribute : Attribute
        {
                // Field

Modified: 
trunk/mcs/class/corlib/System.Reflection/AssemblyDescriptionAttribute.cs
===================================================================
--- trunk/mcs/class/corlib/System.Reflection/AssemblyDescriptionAttribute.cs    
2005-06-07 12:18:57 UTC (rev 45570)
+++ trunk/mcs/class/corlib/System.Reflection/AssemblyDescriptionAttribute.cs    
2005-06-07 12:36:45 UTC (rev 45571)
@@ -35,8 +35,10 @@
 {
 #if NET_2_0
        [ComVisible (true)]
+       [AttributeUsage (AttributeTargets.Assembly, Inherited=false)]
+#else
+       [AttributeUsage (AttributeTargets.Assembly)]
 #endif
-       [AttributeUsage (AttributeTargets.Assembly)]
        public sealed class AssemblyDescriptionAttribute : Attribute
        {
                // Field

Modified: 
trunk/mcs/class/corlib/System.Reflection/AssemblyFileVersionAttribute.cs
===================================================================
--- trunk/mcs/class/corlib/System.Reflection/AssemblyFileVersionAttribute.cs    
2005-06-07 12:18:57 UTC (rev 45570)
+++ trunk/mcs/class/corlib/System.Reflection/AssemblyFileVersionAttribute.cs    
2005-06-07 12:36:45 UTC (rev 45571)
@@ -35,8 +35,10 @@
 {
 #if NET_2_0
        [ComVisible (true)]
+       [AttributeUsage (AttributeTargets.Assembly, Inherited=false)]
+#else
+       [AttributeUsage (AttributeTargets.Assembly)]
 #endif
-       [AttributeUsage (AttributeTargets.Assembly)]
        public sealed class AssemblyFileVersionAttribute : Attribute
        {
                // Field

Modified: trunk/mcs/class/corlib/System.Reflection/AssemblyFlagsAttribute.cs
===================================================================
--- trunk/mcs/class/corlib/System.Reflection/AssemblyFlagsAttribute.cs  
2005-06-07 12:18:57 UTC (rev 45570)
+++ trunk/mcs/class/corlib/System.Reflection/AssemblyFlagsAttribute.cs  
2005-06-07 12:36:45 UTC (rev 45571)
@@ -35,8 +35,10 @@
 {
 #if NET_2_0
        [ComVisible (true)]
+       [AttributeUsage (AttributeTargets.Assembly, Inherited=false)]
+#else
+       [AttributeUsage (AttributeTargets.Assembly)]
 #endif
-       [AttributeUsage (AttributeTargets.Assembly)]
        public sealed class AssemblyFlagsAttribute : Attribute
        {
                // Field

Modified: 
trunk/mcs/class/corlib/System.Reflection/AssemblyInformationalVersionAttribute.cs
===================================================================
--- 
trunk/mcs/class/corlib/System.Reflection/AssemblyInformationalVersionAttribute.cs
   2005-06-07 12:18:57 UTC (rev 45570)
+++ 
trunk/mcs/class/corlib/System.Reflection/AssemblyInformationalVersionAttribute.cs
   2005-06-07 12:36:45 UTC (rev 45571)
@@ -35,8 +35,10 @@
 {
 #if NET_2_0
        [ComVisible (true)]
+       [AttributeUsage (AttributeTargets.Assembly, Inherited=false)]
+#else
+       [AttributeUsage (AttributeTargets.Assembly)]
 #endif
-       [AttributeUsage (AttributeTargets.Assembly)]
        public sealed class AssemblyInformationalVersionAttribute : Attribute
        {
                // Field

Modified: trunk/mcs/class/corlib/System.Reflection/AssemblyKeyFileAttribute.cs
===================================================================
--- trunk/mcs/class/corlib/System.Reflection/AssemblyKeyFileAttribute.cs        
2005-06-07 12:18:57 UTC (rev 45570)
+++ trunk/mcs/class/corlib/System.Reflection/AssemblyKeyFileAttribute.cs        
2005-06-07 12:36:45 UTC (rev 45571)
@@ -35,8 +35,10 @@
 {
 #if NET_2_0
        [ComVisible (true)]
+       [AttributeUsage (AttributeTargets.Assembly, Inherited=false)]
+#else
+       [AttributeUsage (AttributeTargets.Assembly)]
 #endif
-       [AttributeUsage (AttributeTargets.Assembly)]
        public sealed class AssemblyKeyFileAttribute : Attribute
        {
                // Field

Modified: trunk/mcs/class/corlib/System.Reflection/AssemblyKeyNameAttribute.cs
===================================================================
--- trunk/mcs/class/corlib/System.Reflection/AssemblyKeyNameAttribute.cs        
2005-06-07 12:18:57 UTC (rev 45570)
+++ trunk/mcs/class/corlib/System.Reflection/AssemblyKeyNameAttribute.cs        
2005-06-07 12:36:45 UTC (rev 45571)
@@ -35,8 +35,10 @@
 {
 #if NET_2_0
        [ComVisible (true)]
+       [AttributeUsage (AttributeTargets.Assembly, Inherited=false)]
+#else
+       [AttributeUsage (AttributeTargets.Assembly)]
 #endif
-       [AttributeUsage (AttributeTargets.Assembly)]
        public sealed class AssemblyKeyNameAttribute : Attribute
        {
                // Field

Modified: trunk/mcs/class/corlib/System.Reflection/AssemblyNameFlags.cs
===================================================================
--- trunk/mcs/class/corlib/System.Reflection/AssemblyNameFlags.cs       
2005-06-07 12:18:57 UTC (rev 45570)
+++ trunk/mcs/class/corlib/System.Reflection/AssemblyNameFlags.cs       
2005-06-07 12:36:45 UTC (rev 45571)
@@ -60,11 +60,17 @@
 #endif
 
 #if NET_2_0
+               [Obsolete ("This will be removed before Whidbey ships.  There 
will be no replacement for Whidbey.")]
                Library = 0x2,
+               [Obsolete ("This will be removed before Whidbey ships.  There 
will be no replacement for Whidbey.")]
                AppDomainPlatform = 0x4,
+               [Obsolete ("This will be removed before Whidbey ships.  There 
will be no replacement for Whidbey.")]
                ProcessPlatform = 0x6,
+               [Obsolete ("This will be removed before Whidbey ships.  There 
will be no replacement for Whidbey.")]
                SystemPlatform = 0x8,
+               [Obsolete ("This will be removed before Whidbey ships.  There 
will be no replacement for Whidbey.")]
                LongevityMask = 0xe,
+               [Obsolete ("This will be removed before Whidbey ships.  There 
will be no replacement for Whidbey.")]
                LongevityUnspecified = 0x0,
                EnableJITcompileOptimizer = 0x4000,
                EnableJITcompileTracking = 0x8000

Modified: trunk/mcs/class/corlib/System.Reflection/AssemblyProductAttribute.cs
===================================================================
--- trunk/mcs/class/corlib/System.Reflection/AssemblyProductAttribute.cs        
2005-06-07 12:18:57 UTC (rev 45570)
+++ trunk/mcs/class/corlib/System.Reflection/AssemblyProductAttribute.cs        
2005-06-07 12:36:45 UTC (rev 45571)
@@ -35,8 +35,10 @@
 {
 #if NET_2_0
        [ComVisible (true)]
+       [AttributeUsage (AttributeTargets.Assembly, Inherited=false)]
+#else
+       [AttributeUsage (AttributeTargets.Assembly)]
 #endif
-       [AttributeUsage (AttributeTargets.Assembly)]
        public sealed class AssemblyProductAttribute : Attribute
        {
                // Field

Modified: trunk/mcs/class/corlib/System.Reflection/AssemblyTitleAttribute.cs
===================================================================
--- trunk/mcs/class/corlib/System.Reflection/AssemblyTitleAttribute.cs  
2005-06-07 12:18:57 UTC (rev 45570)
+++ trunk/mcs/class/corlib/System.Reflection/AssemblyTitleAttribute.cs  
2005-06-07 12:36:45 UTC (rev 45571)
@@ -35,8 +35,10 @@
 {
 #if NET_2_0
        [ComVisible (true)]
+       [AttributeUsage (AttributeTargets.Assembly, Inherited=false)]
+#else
+       [AttributeUsage (AttributeTargets.Assembly)]
 #endif
-       [AttributeUsage (AttributeTargets.Assembly)]
        public sealed class AssemblyTitleAttribute : Attribute
        {
                // Field

Modified: trunk/mcs/class/corlib/System.Reflection/AssemblyTradeMarkAttribute.cs
===================================================================
--- trunk/mcs/class/corlib/System.Reflection/AssemblyTradeMarkAttribute.cs      
2005-06-07 12:18:57 UTC (rev 45570)
+++ trunk/mcs/class/corlib/System.Reflection/AssemblyTradeMarkAttribute.cs      
2005-06-07 12:36:45 UTC (rev 45571)
@@ -35,8 +35,10 @@
 {
 #if NET_2_0
        [ComVisible (true)]
+       [AttributeUsage (AttributeTargets.Assembly, Inherited=false)]
+#else
+       [AttributeUsage (AttributeTargets.Assembly)]
 #endif
-       [AttributeUsage (AttributeTargets.Assembly)]
        public sealed class AssemblyTrademarkAttribute : Attribute
        {
                // Field

Modified: trunk/mcs/class/corlib/System.Reflection/AssemblyVersionAttribute.cs
===================================================================
--- trunk/mcs/class/corlib/System.Reflection/AssemblyVersionAttribute.cs        
2005-06-07 12:18:57 UTC (rev 45570)
+++ trunk/mcs/class/corlib/System.Reflection/AssemblyVersionAttribute.cs        
2005-06-07 12:36:45 UTC (rev 45571)
@@ -35,8 +35,10 @@
 {
 #if NET_2_0
        [ComVisible (true)]
+       [AttributeUsage (AttributeTargets.Assembly, Inherited=false)]
+#else
+       [AttributeUsage (AttributeTargets.Assembly)]
 #endif
-       [AttributeUsage (AttributeTargets.Assembly)]
        public sealed class AssemblyVersionAttribute : Attribute
        {
                // Field

Modified: trunk/mcs/class/corlib/System.Reflection/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Reflection/ChangeLog  2005-06-07 12:18:57 UTC 
(rev 45570)
+++ trunk/mcs/class/corlib/System.Reflection/ChangeLog  2005-06-07 12:36:45 UTC 
(rev 45571)
@@ -1,3 +1,7 @@
+2005-06-07  Zoltan Varga  <[EMAIL PROTECTED]>
+
+       * *.cs: Updates for net 2.0 beta 2.
+
 2005-06-06  Zoltan Varga  <[EMAIL PROTECTED]>
 
        * Assembly.cs ExceptionHandlingClause.cs: Fix build.

Modified: trunk/mcs/class/corlib/System.Reflection/ConstructorInfo.cs
===================================================================
--- trunk/mcs/class/corlib/System.Reflection/ConstructorInfo.cs 2005-06-07 
12:18:57 UTC (rev 45570)
+++ trunk/mcs/class/corlib/System.Reflection/ConstructorInfo.cs 2005-06-07 
12:36:45 UTC (rev 45571)
@@ -50,6 +50,9 @@
                protected ConstructorInfo() {
                }
                
+#if NET_2_0
+               [ComVisible (true)]
+#endif
                public override MemberTypes MemberType {
                        get {return MemberTypes.Constructor;}
                }

Modified: trunk/mcs/class/corlib/System.Reflection/FieldInfo.cs
===================================================================
--- trunk/mcs/class/corlib/System.Reflection/FieldInfo.cs       2005-06-07 
12:18:57 UTC (rev 45570)
+++ trunk/mcs/class/corlib/System.Reflection/FieldInfo.cs       2005-06-07 
12:36:45 UTC (rev 45571)
@@ -217,17 +217,29 @@
                }
 
 #if NET_2_0 || BOOTSTRAP_NET_2_0
+               [Obsolete ("Use FieldInfo.GetOptionalCustomModifiers().")]
                public virtual Type[] OptionalCustomModifiers {
                        get {
-                               throw new NotImplementedException ();
+                               return GetOptionalCustomModifiers ();
                        }
                }
 
+               [Obsolete ("Use FieldInfo.GetRequiredCustomModifiers().")]
                public virtual Type[] RequiredCustomModifiers {
                        get {
-                               throw new NotImplementedException ();
+                               return GetRequiredCustomModifiers ();
                        }
                }
+
+               [MonoTODO]
+               public virtual Type[] GetOptionalCustomModifiers () {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public virtual Type[] GetRequiredCustomModifiers () {
+                       throw new NotImplementedException ();
+               }
 #endif
 
 #if NET_2_0 || BOOTSTRAP_NET_2_0

Modified: trunk/mcs/class/corlib/System.Reflection/InterfaceMapping.cs
===================================================================
--- trunk/mcs/class/corlib/System.Reflection/InterfaceMapping.cs        
2005-06-07 12:18:57 UTC (rev 45570)
+++ trunk/mcs/class/corlib/System.Reflection/InterfaceMapping.cs        
2005-06-07 12:36:45 UTC (rev 45571)
@@ -25,6 +25,9 @@
 using System.Runtime.InteropServices;
 
 namespace System.Reflection {
+#if NET_2_0
+               [ComVisible (true)]
+#endif
        public struct InterfaceMapping {
 
 #if NET_2_0

Modified: trunk/mcs/class/corlib/System.Reflection/MethodImplAttributes.cs
===================================================================
--- trunk/mcs/class/corlib/System.Reflection/MethodImplAttributes.cs    
2005-06-07 12:18:57 UTC (rev 45570)
+++ trunk/mcs/class/corlib/System.Reflection/MethodImplAttributes.cs    
2005-06-07 12:36:45 UTC (rev 45571)
@@ -41,8 +41,9 @@
        /// </summary>
 #if NET_2_0
        [ComVisible (true)]
+#else
+       [Flags]
 #endif
-       [Flags]
        public enum MethodImplAttributes {
 
                /// <summary>

Modified: trunk/mcs/class/corlib/System.Reflection/MonoField.cs
===================================================================
--- trunk/mcs/class/corlib/System.Reflection/MonoField.cs       2005-06-07 
12:18:57 UTC (rev 45570)
+++ trunk/mcs/class/corlib/System.Reflection/MonoField.cs       2005-06-07 
12:36:45 UTC (rev 45571)
@@ -139,22 +139,6 @@
                }
 
 #if NET_2_0 || BOOTSTRAP_NET_2_0
-               [MonoTODO]
-               public override Type[] OptionalCustomModifiers {
-                       get {
-                               throw new NotImplementedException ();
-                       }
-               }
-
-               [MonoTODO]
-               public override Type[] RequiredCustomModifiers {
-                       get {
-                               throw new NotImplementedException ();
-                       }
-               }
-#endif
-
-#if NET_2_0 || BOOTSTRAP_NET_2_0
                [MethodImplAttribute(MethodImplOptions.InternalCall)]
                public override extern FieldInfo Mono_GetGenericFieldDefinition 
();
 #endif

Modified: trunk/mcs/class/corlib/System.Reflection/ParameterInfo.cs
===================================================================
--- trunk/mcs/class/corlib/System.Reflection/ParameterInfo.cs   2005-06-07 
12:18:57 UTC (rev 45570)
+++ trunk/mcs/class/corlib/System.Reflection/ParameterInfo.cs   2005-06-07 
12:36:45 UTC (rev 45571)
@@ -170,19 +170,29 @@
                }                       
 
 #if NET_2_0 || BOOTSTRAP_NET_2_0
-               [MonoTODO]
+               [Obsolete ("Use ParameterInfo.GetOptionalCustomModifiers().")]
                public virtual Type[] OptionalCustomModifiers {
                        get {
-                               throw new NotImplementedException ();
+                               return GetOptionalCustomModifiers ();
                        }
                }
 
-               [MonoTODO]
+               [Obsolete ("Use ParameterInfo.GetRequiredCustomModifiers().")]
                public virtual Type[] RequiredCustomModifiers {
                        get {
-                               throw new NotImplementedException ();
+                               return GetRequiredCustomModifiers ();
                        }
                }
+
+               [MonoTODO]
+               public virtual Type[] GetOptionalCustomModifiers () {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public virtual Type[] GetRequiredCustomModifiers () {
+                       throw new NotImplementedException ();
+               }
 #endif
        }
 }

Modified: trunk/mcs/class/corlib/System.Reflection/Pointer.cs
===================================================================
--- trunk/mcs/class/corlib/System.Reflection/Pointer.cs 2005-06-07 12:18:57 UTC 
(rev 45570)
+++ trunk/mcs/class/corlib/System.Reflection/Pointer.cs 2005-06-07 12:36:45 UTC 
(rev 45571)
@@ -42,6 +42,7 @@
 
 #if NET_2_0
        [ComVisible (true)]
+       [Serializable]
 #endif
        [CLSCompliant(false)]
        public unsafe sealed class Pointer : ISerializable {

Modified: trunk/mcs/class/corlib/System.Reflection/PortableExecutableKinds.cs
===================================================================
--- trunk/mcs/class/corlib/System.Reflection/PortableExecutableKinds.cs 
2005-06-07 12:18:57 UTC (rev 45570)
+++ trunk/mcs/class/corlib/System.Reflection/PortableExecutableKinds.cs 
2005-06-07 12:36:45 UTC (rev 45571)
@@ -26,8 +26,13 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
+using System.Runtime.InteropServices;
+
 namespace System.Reflection {
 
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        [Flags]
        [Serializable]
 #if NET_2_0 || BOOTSTRAP_NET_2_0
@@ -39,6 +44,7 @@
                NotAPortableExecutableImage = 0,
                ILOnly = 1,
                Required32Bit = 2,
+               [Obsolete ("Please use PE32Plus instead - this will be removed 
before Whidbey ships")]
                Plus32Bit = 4,
                PE32Plus = 4,
                Unmanaged32Bit = 8

Modified: trunk/mcs/class/corlib/System.Reflection/ProcessorArchitecture.cs
===================================================================
--- trunk/mcs/class/corlib/System.Reflection/ProcessorArchitecture.cs   
2005-06-07 12:18:57 UTC (rev 45570)
+++ trunk/mcs/class/corlib/System.Reflection/ProcessorArchitecture.cs   
2005-06-07 12:36:45 UTC (rev 45571)
@@ -28,9 +28,11 @@
 
 #if NET_2_0
 
+using System.Runtime.InteropServices;
+
 namespace System.Reflection {
 
-       [Flags]
+       [ComVisible (true)]
        [Serializable]
        public enum ProcessorArchitecture {
                None = 0,

Modified: trunk/mcs/class/corlib/System.Reflection/TypeDelegator.cs
===================================================================
--- trunk/mcs/class/corlib/System.Reflection/TypeDelegator.cs   2005-06-07 
12:18:57 UTC (rev 45570)
+++ trunk/mcs/class/corlib/System.Reflection/TypeDelegator.cs   2005-06-07 
12:36:45 UTC (rev 45571)
@@ -103,6 +103,9 @@
                        return typeImpl.GetConstructor (bindingAttr, binder, 
callConvention, types, modifiers);
                }
 
+#if NET_2_0
+               [ComVisible (true)]
+#endif
                public override ConstructorInfo[] GetConstructors( BindingFlags 
bindingAttr)
                {
                        return typeImpl.GetConstructors (bindingAttr);
@@ -153,6 +156,9 @@
                        return typeImpl.GetInterface (name, ignoreCase);
                }
 
+#if NET_2_0
+               [ComVisible (true)]
+#endif
                public override InterfaceMapping GetInterfaceMap( Type 
interfaceType)
                {
                        return typeImpl.GetInterfaceMap (interfaceType);
@@ -283,6 +289,12 @@
                                throw new NotImplementedException ();
                        }
                }
+
+               public override int MetadataToken {
+                       get {
+                               return typeImpl.MetadataToken;
+                       }
+               }
 #endif
 
        }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to