https://bugzilla.novell.com/show_bug.cgi?id=349194
User [EMAIL PROTECTED] added comment https://bugzilla.novell.com/show_bug.cgi?id=349194#c1 Cedric Vivier <[EMAIL PROTECTED]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[EMAIL PROTECTED] --- Comment #1 from Cedric Vivier <[EMAIL PROTECTED]> 2007-12-17 10:20:32 MST --- The problem is actually that the dynamic type created returns System.MonoType instead of the actual dynamic type. Here is a simpler testcase narrowing the problem : using System; using System.Reflection; using System.Reflection.Emit; public class DynamicTypeTestcase { public static void Main() { AssemblyName an = new AssemblyName(); an.Name = "TestAssembly"; AssemblyBuilder ab = AppDomain.CurrentDomain.DefineDynamicAssembly(an, AssemblyBuilderAccess.RunAndSave); ModuleBuilder mb = ab.DefineDynamicModule("TestModule", "Test.dll"); TypeBuilder tb = mb.DefineType("TestType", TypeAttributes.Class); Type t = tb.CreateType(); Console.WriteLine(t.GetType());//=> System.MonoType ...but should be TestType Console.WriteLine(t.UnderlyingSystemType);//=> TestType ...but should be System.MonoType ?? } } -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
