Author: zoltan
Date: 2005-03-30 13:51:23 -0500 (Wed, 30 Mar 2005)
New Revision: 42381
Modified:
trunk/mcs/class/corlib/System.Reflection/Binder.cs
trunk/mcs/class/corlib/System.Reflection/ChangeLog
Log:
2005-03-30 Zoltan Varga <[EMAIL PROTECTED]>
* Binder.cs (check_type): Fix byref support. Fixes #73972.
Modified: trunk/mcs/class/corlib/System.Reflection/Binder.cs
===================================================================
--- trunk/mcs/class/corlib/System.Reflection/Binder.cs 2005-03-30 18:25:37 UTC
(rev 42380)
+++ trunk/mcs/class/corlib/System.Reflection/Binder.cs 2005-03-30 18:51:23 UTC
(rev 42381)
@@ -199,8 +199,8 @@
TypeCode fromt = Type.GetTypeCode (from);
TypeCode tot = Type.GetTypeCode (to);
- if (to.IsByRef && !from.IsByRef)
- return check_type (from,
to.GetElementType ());
+ if (to.IsByRef != from.IsByRef)
+ return false;
switch (fromt) {
case TypeCode.Char:
Modified: trunk/mcs/class/corlib/System.Reflection/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Reflection/ChangeLog 2005-03-30 18:25:37 UTC
(rev 42380)
+++ trunk/mcs/class/corlib/System.Reflection/ChangeLog 2005-03-30 18:51:23 UTC
(rev 42381)
@@ -1,3 +1,7 @@
+2005-03-30 Zoltan Varga <[EMAIL PROTECTED]>
+
+ * Binder.cs (check_type): Fix byref support. Fixes #73972.
+
2005-03-24 Sebastien Pouliot <[EMAIL PROTECTED]>
* MemberInfo.cs: Add an InheritanceDemand for Unrestricted on class.
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches