Author: zoltan
Date: 2005-06-08 04:21:28 -0400 (Wed, 08 Jun 2005)
New Revision: 45620

Modified:
   trunk/mcs/class/corlib/System/ChangeLog
   trunk/mcs/class/corlib/System/Type.cs
Log:
2005-06-08  Zoltan Varga  <[EMAIL PROTECTED]>

        * Type.cs: Add missing 2.0 attributes.


Modified: trunk/mcs/class/corlib/System/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System/ChangeLog     2005-06-08 08:07:15 UTC (rev 
45619)
+++ trunk/mcs/class/corlib/System/ChangeLog     2005-06-08 08:21:28 UTC (rev 
45620)
@@ -1,3 +1,7 @@
+2005-06-08  Zoltan Varga  <[EMAIL PROTECTED]>
+
+       * Type.cs: Add missing 2.0 attributes.
+
 2005-06-07  Carlos Alberto Cortez <[EMAIL PROTECTED]>
 
        * MonoCustomAttrs.cs: Added GetCustomAttributesDataInternal icall, and

Modified: trunk/mcs/class/corlib/System/Type.cs
===================================================================
--- trunk/mcs/class/corlib/System/Type.cs       2005-06-08 08:07:15 UTC (rev 
45619)
+++ trunk/mcs/class/corlib/System/Type.cs       2005-06-08 08:21:28 UTC (rev 
45620)
@@ -384,6 +384,9 @@
 
                public abstract RuntimeTypeHandle TypeHandle {get;}
 
+#if NET_2_0
+               [ComVisible (true)]
+#endif
                public ConstructorInfo TypeInitializer {
                        get {
                                return GetConstructorImpl (
@@ -548,6 +551,9 @@
                                return type_is_subtype_of (a, b, 
check_interfaces);
                }
 
+#if NET_2_0
+               [ComVisible (true)]
+#endif
                public virtual bool IsSubclassOf (Type c)
                {
                        if (c == null)
@@ -578,7 +584,10 @@
 
                [MethodImplAttribute(MethodImplOptions.InternalCall)]
                internal static extern void GetInterfaceMapData (Type t, Type 
iface, out MethodInfo[] targets, out MethodInfo[] methods);
-               
+
+#if NET_2_0
+               [ComVisible (true)]
+#endif         
                public virtual InterfaceMapping GetInterfaceMap (Type 
interfaceType) {
                        InterfaceMapping res;
                        if (interfaceType == null)
@@ -873,12 +882,18 @@
                        return typeof (MarshalByRefObject).IsAssignableFrom 
(this);
                }
 
+#if NET_2_0
+               [ComVisible (true)]
+#endif
                public ConstructorInfo GetConstructor (Type[] types)
                {
                        return GetConstructorImpl (
                                DefaultBindingFlags, null, 
CallingConventions.Any, types, null);
                }
 
+#if NET_2_0
+               [ComVisible (true)]
+#endif
                public ConstructorInfo GetConstructor (BindingFlags 
bindingAttr, Binder binder,
                                                       Type[] types, 
ParameterModifier[] modifiers)
                {
@@ -886,6 +901,9 @@
                                bindingAttr, binder, CallingConventions.Any, 
types, modifiers);
                }
 
+#if NET_2_0
+               [ComVisible (true)]
+#endif
                public ConstructorInfo GetConstructor (BindingFlags 
bindingAttr, Binder binder,
                                                       CallingConventions 
callConvention,
                                                       Type[] types, 
ParameterModifier[] modifiers)
@@ -896,11 +914,17 @@
                        return GetConstructorImpl (bindingAttr, binder, 
callConvention, types, modifiers);
                }
 
+#if NET_2_0
+               [ComVisible (true)]
+#endif
                public ConstructorInfo[] GetConstructors ()
                {
                        return GetConstructors (BindingFlags.Public | 
BindingFlags.Instance);
                }
-               
+
+#if NET_2_0
+               [ComVisible (true)]
+#endif         
                public abstract ConstructorInfo[] GetConstructors (BindingFlags 
bindingAttr);
 
                public virtual MemberInfo[] GetDefaultMembers ()
@@ -1068,7 +1092,10 @@
 
                [MethodImplAttribute(MethodImplOptions.InternalCall)]
                static extern Type BindGenericParameters (Type gt, Type [] 
types);
-               
+
+#if NET_2_0
+               [ComVisible (true)]
+#endif         
                public Type BindGenericParameters (Type [] types)
                {
                        if (types == null)

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

Reply via email to