On Fri, 15 Dec 2006 15:22:11 +0100, Robert Jordan wrote: > Paolo Molaro wrote: >> On 12/15/06 Maciej Piechotka wrote: >>> I have a collection which I got from dll. However I have a objects of >>> System.Type and I want to have MonoClass. >>> >>> How can I do it? >> >> In C# code do: >> IntPtr value = type.TypeHandle.Value; >> >> value is a MonoType* and you can call mono_class_from_mono_type (value) >> to get a MonoClass*. >> Poking into MonoReflectionType* is going to break. >> > > This requires either 2 mono_runtime_invoke calls on the MonoObject* of > the certain System.Type or some managed glue. > > It would be nice to have an accessor for the MonoReflectionType->type > member instead. > > Robert >
Ok. I have to rewirte half of my code anyway. Regards -- I've probably left my head... somewhere. Please wait untill I find it. Homepage (pl_PL): http://uzytkownik.jogger.pl/ (GNU/)Linux User: #425935 (see http://counter.li.org/) _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
