Author: gonzalo
Date: 2005-06-15 02:34:10 -0400 (Wed, 15 Jun 2005)
New Revision: 46014

Modified:
   trunk/mcs/class/corlib/System.Reflection/Binder.cs
   trunk/mcs/class/corlib/System.Reflection/ChangeLog
Log:
2005-06-15 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>

        * Binder.cs: null is ok for a value type. Fixes bug #75241.



Modified: trunk/mcs/class/corlib/System.Reflection/Binder.cs
===================================================================
--- trunk/mcs/class/corlib/System.Reflection/Binder.cs  2005-06-15 06:26:19 UTC 
(rev 46013)
+++ trunk/mcs/class/corlib/System.Reflection/Binder.cs  2005-06-15 06:34:10 UTC 
(rev 46014)
@@ -186,7 +186,7 @@
                                        return true;
 
                                if (from == null)
-                                       return !to.IsValueType;
+                                       return true;
 
                                TypeCode fromt = Type.GetTypeCode (from);
                                TypeCode tot = Type.GetTypeCode (to);

Modified: trunk/mcs/class/corlib/System.Reflection/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Reflection/ChangeLog  2005-06-15 06:26:19 UTC 
(rev 46013)
+++ trunk/mcs/class/corlib/System.Reflection/ChangeLog  2005-06-15 06:34:10 UTC 
(rev 46014)
@@ -1,3 +1,7 @@
+2005-06-15 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+
+       * Binder.cs: null is ok for a value type. Fixes bug #75241.
+
 2005-06-14  Sebastien Pouliot  <[EMAIL PROTECTED]>
 
        * Assembly.cs: UnprotectedGetName is now virtual to allow for more

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

Reply via email to