Author: marek
Date: 2005-06-27 11:26:49 -0400 (Mon, 27 Jun 2005)
New Revision: 46559

Modified:
   trunk/mcs/class/corlib/System.Reflection.Emit/ChangeLog
   trunk/mcs/class/corlib/System.Reflection.Emit/TypeBuilder.cs
Log:
2005-06-27  Marek Safar  <[EMAIL PROTECTED]>

        * TypeBuilder.cs (check_name): Wrong exception argument order.

Modified: trunk/mcs/class/corlib/System.Reflection.Emit/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Reflection.Emit/ChangeLog     2005-06-27 
15:08:39 UTC (rev 46558)
+++ trunk/mcs/class/corlib/System.Reflection.Emit/ChangeLog     2005-06-27 
15:26:49 UTC (rev 46559)
@@ -1,3 +1,7 @@
+2005-06-27  Marek Safar  <[EMAIL PROTECTED]>
+
+       * TypeBuilder.cs (check_name): Wrong exception argument order.
+
 2005-06-14  Sebastien Pouliot  <[EMAIL PROTECTED]>
 
        * AssemblyBuilder.cs: Override UnprotectedGetName to set the public 

Modified: trunk/mcs/class/corlib/System.Reflection.Emit/TypeBuilder.cs
===================================================================
--- trunk/mcs/class/corlib/System.Reflection.Emit/TypeBuilder.cs        
2005-06-27 15:08:39 UTC (rev 46558)
+++ trunk/mcs/class/corlib/System.Reflection.Emit/TypeBuilder.cs        
2005-06-27 15:26:49 UTC (rev 46559)
@@ -1399,10 +1399,10 @@
                {
                        if (name == null)
                                throw new ArgumentNullException (argName);
-                       if (name == "")
-                               throw new ArgumentException (argName, "Empty 
name is not legal.");
+                       if (name.Length == 0)
+                               throw new ArgumentException ("Empty name is not 
legal", argName);
                        if (name.IndexOf ((char)0) != -1)
-                               throw new ArgumentException (argName, "Illegal 
name.");
+                               throw new ArgumentException ("Illegal name", 
argName);
                }
 
                public override String ToString ()

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

Reply via email to