Author: zoltan
Date: 2007-09-11 14:07:27 -0400 (Tue, 11 Sep 2007)
New Revision: 85649

Modified:
   trunk/mono/mono/metadata/ChangeLog
   trunk/mono/mono/metadata/reflection.c
Log:
2007-09-11  Zoltan Varga  <[EMAIL PROTECTED]>

        * reflection.c (resolve_object): Add support for MonoGenericClass. 
        Inflate MonoType's.


Modified: trunk/mono/mono/metadata/ChangeLog
===================================================================
--- trunk/mono/mono/metadata/ChangeLog  2007-09-11 17:23:49 UTC (rev 85648)
+++ trunk/mono/mono/metadata/ChangeLog  2007-09-11 18:07:27 UTC (rev 85649)
@@ -1,4 +1,8 @@
+2007-09-11  Zoltan Varga  <[EMAIL PROTECTED]>
 
+       * reflection.c (resolve_object): Add support for MonoGenericClass. 
+       Inflate MonoType's.
+
 Tue Sep 11 16:08:08 CEST 2007 Paolo Molaro <[EMAIL PROTECTED]>
 
        * gc-internal.h, boehm-gc.c, null-gc.c, sgen-gc.c: allow the GC to

Modified: trunk/mono/mono/metadata/reflection.c
===================================================================
--- trunk/mono/mono/metadata/reflection.c       2007-09-11 17:23:49 UTC (rev 
85648)
+++ trunk/mono/mono/metadata/reflection.c       2007-09-11 18:07:27 UTC (rev 
85649)
@@ -9573,7 +9573,7 @@
                g_assert (result);
        } else if (strcmp (obj->vtable->klass->name, "MonoType") == 0) {
                MonoReflectionType *tb = (MonoReflectionType*)obj;
-               result = mono_class_from_mono_type (tb->type);
+               result = mono_class_from_mono_type 
(mono_class_inflate_generic_type (tb->type, context));
                *handle_class = mono_defaults.typehandle_class;
                g_assert (result);
        } else if (strcmp (obj->vtable->klass->name, "MonoMethod") == 0 ||
@@ -9690,6 +9690,11 @@
                result = mono_class_from_mono_type 
(mono_class_inflate_generic_type (tb->type, context));
                *handle_class = mono_defaults.typehandle_class;
                g_assert (result);
+       } else if (strcmp (obj->vtable->klass->name, "MonoGenericClass") == 0) {
+               MonoReflectionGenericClass *ref = 
(MonoReflectionGenericClass*)obj;
+               result = mono_class_from_mono_type 
(mono_class_inflate_generic_type (ref->type.type, context));
+               *handle_class = mono_defaults.typehandle_class;
+               g_assert (result);
        } else {
                g_print (obj->vtable->klass->name);
                g_assert_not_reached ();

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

Reply via email to