[Mono-bugs] [Bug 23946] Changed - Convert.ChangeType fails on TypeBuilder-created types

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
1 May 2002 22:57:35 -0000

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by miguel@ximian.com.


--- shadow/23946	Tue Apr 30 22:25:16 2002
+++ shadow/23946.tmp.17592	Wed May  1 18:57:35 2002
@@ -84,6 +84,20 @@
 What this means is that you wont be able to compile `corlib' with mcs
 using the Microsoft runtime, you will have to use the Mono runtime.
 But I am not sure if our Mono runtime is ready for this.
+------- Additional Comments From miguel@ximian.com  2002-05-01 18:57 -------
+Ok, some more comments:
+1. It is possible to implement our own Convert.ChangeType, we just
+need to have nested table of ifs and manually call the IConvertible
+interface.ToSomething () method.
+2. The problem with calling the FieldBuilder with a type which is not
+one of our defined types is that it will end up "referencing" an
+external type instead of being an internal type (that is my guess
+We can try of course.