* Binder.cs: Allow conversion of IntPtr to pointer types.
svn path=/trunk/mcs/; revision=137746
if (type == typeof (float))
return (float)(char)value;
}
+ if (vtype == typeof (IntPtr) && type.IsPointer)
+ return value;
return Convert.ChangeType (value, type);
}
return null;
/* TODO: handle valuetype -> byref */
if (to == typeof (object) && from.IsValueType)
return true;
+ if (to.IsPointer && from == typeof (IntPtr))
+ return true;
return to.IsAssignableFrom (from);
}
+2009-07-11 Zoltan Varga <vargaz@gmail.com>
+
+ * Binder.cs: Allow conversion of IntPtr to pointer types.
+
2009-07-10 Zoltan Varga <vargaz@gmail.com>
* Binder.cs (check_arguments): Allow a type to match its byref version.