[Mono-devel-list] Embedding API, small improvement.
Gonzalo Paniagua Javier
gonzalo at ximian.com
Thu May 20 11:16:03 EDT 2004
El jue, 20-05-2004 a las 00:55, Miguel de Icaza escribió:
> Hey Paolo,
> Someone was asking about getting types today and where to get a
> MonoImage from, we gave him a sample that works, but I realized that
> this is not optimal.
> The following patch adds `mono_type_get' method that works very much
> like "Type Type.GetType (string)" method for the C side, let me know if
> this is ok to check in.
> So now you can do:
> MonoTypeReflection *type = mono_type_get ("System.Char");
Nice. While trying to do the corcompare stuff in C, I had to do too much
cut & paste from code in metadata to use reflection. May be we should
provide a simpler API for that.
More information about the Mono-devel-list