Author: atsushi
Date: 2007-07-19 07:23:20 -0400 (Thu, 19 Jul 2007)
New Revision: 82271

Modified:
   trunk/mcs/class/corlib/System.Reflection/ChangeLog
   trunk/mcs/class/corlib/System.Reflection/MonoMethod.cs
   trunk/mcs/class/corlib/Test/System.Reflection/ChangeLog
   trunk/mcs/class/corlib/Test/System.Reflection/MethodInfoTest.cs
Log:
2007-07-19  Atsushi Enomoto  <[EMAIL PROTECTED]>

        * MonoMethod.cs : parameter types should be fixed as well.

        * MethodInfoTest.cs : fix incorrect parameter type output.



Modified: trunk/mcs/class/corlib/System.Reflection/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Reflection/ChangeLog  2007-07-19 11:19:30 UTC 
(rev 82270)
+++ trunk/mcs/class/corlib/System.Reflection/ChangeLog  2007-07-19 11:23:20 UTC 
(rev 82271)
@@ -1,5 +1,9 @@
 2007-07-19  Atsushi Enomoto  <[EMAIL PROTECTED]>
 
+       * MonoMethod.cs : parameter types should be fixed as well.
+
+2007-07-19  Atsushi Enomoto  <[EMAIL PROTECTED]>
+
        * MonoMethod.cs : ToString() did not show correct return type when
          it is generic.
 

Modified: trunk/mcs/class/corlib/System.Reflection/MonoMethod.cs
===================================================================
--- trunk/mcs/class/corlib/System.Reflection/MonoMethod.cs      2007-07-19 
11:19:30 UTC (rev 82270)
+++ trunk/mcs/class/corlib/System.Reflection/MonoMethod.cs      2007-07-19 
11:23:20 UTC (rev 82271)
@@ -267,11 +267,10 @@
                                bool byref = pt.IsByRef;
                                if (byref)
                                        pt = pt.GetElementType ();
-                               if (pt.IsClass && pt.Namespace != String.Empty) 
{
-                                       sb.Append (pt.Namespace);
-                                       sb.Append (".");
-                               }
-                               sb.Append (pt.Name);
+                               if (pt.IsClass)
+                                       sb.Append (pt.ToString ());
+                               else
+                                       sb.Append (pt.Name);
                                if (byref)
                                        sb.Append (" ByRef");
                        }

Modified: trunk/mcs/class/corlib/Test/System.Reflection/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/Test/System.Reflection/ChangeLog     2007-07-19 
11:19:30 UTC (rev 82270)
+++ trunk/mcs/class/corlib/Test/System.Reflection/ChangeLog     2007-07-19 
11:23:20 UTC (rev 82271)
@@ -1,5 +1,9 @@
 2007-07-19  Atsushi Enomoto  <[EMAIL PROTECTED]>
 
+       * MethodInfoTest.cs : fix incorrect parameter type output.
+
+2007-07-19  Atsushi Enomoto  <[EMAIL PROTECTED]>
+
        * MethodInfoTest.cs : added ToString() test for generic return type.
 
 2007-07-09  Mark Probst  <[EMAIL PROTECTED]>

Modified: trunk/mcs/class/corlib/Test/System.Reflection/MethodInfoTest.cs
===================================================================
--- trunk/mcs/class/corlib/Test/System.Reflection/MethodInfoTest.cs     
2007-07-19 11:19:30 UTC (rev 82270)
+++ trunk/mcs/class/corlib/Test/System.Reflection/MethodInfoTest.cs     
2007-07-19 11:23:20 UTC (rev 82271)
@@ -197,7 +197,7 @@
                [Test]
                public void ToStringGenericMethod ()
                {
-                       Assert.AreEqual 
("System.Collections.ObjectModel.ReadOnlyCollection`1[T] AsReadOnly[T](.T[])",
+                       Assert.AreEqual 
("System.Collections.ObjectModel.ReadOnlyCollection`1[T] AsReadOnly[T](T[])",
                                typeof (Array).GetMethod 
("AsReadOnly").ToString ());
                }
 #endif

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

Reply via email to