[Mono-list] Export Type to C

Maciej Piechotka uzytkownik2 at gmail.com
Fri Dec 22 14:45:12 EST 2006


On Fri, 22 Dec 2006 11:08:48 -0500, Miguel de Icaza wrote:

> Hello,
> 
>> If I do something like that will I get MonoType * in C?
>> [DllImport("__internal", "e_cal_glue_backend_factory_get_type")]
>> static extern IntPtr method(IntPtr type);
>> 
>> protected static GType GetNewType(Type type)
>> {
>>   return method(type.TypeHandle.Value);
>> }
>> 
>> If not how can I get it (MonoType * or MonoClass *)?
> 
> The GLib types are different than Mono's MonoType (which is the
> unmanaged representation of System.Type).

I know - unmanaged method 'method'. However I discovered it's unneeded...

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/)



More information about the Mono-list mailing list