2005-06-13 Martin Baulig <martin@ximian.com>
authorMartin Baulig <martin@novell.com>
Mon, 13 Jun 2005 13:21:28 +0000 (13:21 -0000)
committerMartin Baulig <martin@novell.com>
Mon, 13 Jun 2005 13:21:28 +0000 (13:21 -0000)
* MonoType.cs
(MonoType.getFullName): Added `bool assembly_qualified' argument.
(MonoType.AssemblyQualifiedName): The interncall now adds the
assembly name, so we don't need to do it here.
(MonoType.FullName): Use the new getFullName() API for 2.0.

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

mcs/class/corlib/System.Reflection.Emit/ConstructorBuilder.cs
mcs/class/corlib/System/ChangeLog
mcs/class/corlib/System/Environment.cs
mcs/class/corlib/System/MonoType.cs

index dd3927cb019d6ecf75eb952b3e521a481fcc1849..e24d3d904add328c30b62982ded8e8a7de02aa93 100644 (file)
@@ -208,7 +208,7 @@ namespace System.Reflection.Emit {
                        if (customBuilder == null)
                                throw new ArgumentNullException ("customBuilder");
 
-                       string attrname = customBuilder.Ctor.ReflectedType.FullName;
+                       string attrname = customBuilder.Ctor.ReflectedType.ToString ();
                        if (attrname == "System.Runtime.CompilerServices.MethodImplAttribute") {
                                byte[] data = customBuilder.Data;
                                int impla; // the (stupid) ctor takes a short or an int ... 
index 50b6305073da18fc3f68e868b9c8b7307dcaf24f..fd168fc1a0d72ec8f1c191a1443b112959f8222c 100644 (file)
@@ -1,3 +1,11 @@
+2005-06-13  Martin Baulig  <martin@ximian.com>
+
+       * MonoType.cs
+       (MonoType.getFullName): Added `bool assembly_qualified' argument.
+       (MonoType.AssemblyQualifiedName): The interncall now adds the
+       assembly name, so we don't need to do it here.
+       (MonoType.FullName): Use the new getFullName() API for 2.0.
+
 2005-06-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
 
        * Convert.cs: FromBase64String and FromBase64CharArray are now internal
index 3a12dc9ddeac0d73c96c9630b043af115f5cc1bf..0903ff6c3f1ee17f460a9668cf126886766c80f7 100644 (file)
@@ -59,7 +59,7 @@ namespace System {
                 * Changes which are already detected at runtime, like the addition
                 * of icalls, do not require an increment.
                 */
-               private const int mono_corlib_version = 37;
+               private const int mono_corlib_version = 38;
                
                [MonoTODO]
                public enum SpecialFolder
index beac7fa2cc3dd8e9ad02bee8742fac1775fb8db3..b539bf0cc5c96a968d064628b6e934da141ccdbc 100644 (file)
@@ -470,12 +470,12 @@ namespace System
 
                public override string AssemblyQualifiedName {
                        get {
-                               return getFullName (false) + ", " + Assembly.UnprotectedGetName ().ToString ();
+                               return getFullName (true, true);
                        }
                }
 
                [MethodImplAttribute(MethodImplOptions.InternalCall)]
-               private extern string getFullName(bool full_name);
+               private extern string getFullName(bool full_name, bool assembly_qualified);
 
                public extern override Type BaseType {
                        [MethodImplAttribute(MethodImplOptions.InternalCall)]
@@ -484,7 +484,11 @@ namespace System
 
                public override string FullName {
                        get {
-                               return getFullName (false);
+#if NET_2_0 || BOOTSTRAP_NET_2_0
+                               return getFullName (true, false);
+#else
+                               return getFullName (false, false);
+#endif
                        }
                }
 
@@ -565,7 +569,7 @@ namespace System
 
                public override string ToString()
                {
-                       return getFullName (true);
+                       return getFullName (false, false);
                }
 
 #if NET_2_0 || BOOTSTRAP_NET_2_0