[Mono-devel-list] Embedding API, small improvement.

Miguel de Icaza miguel at ximian.com
Thu May 20 13:05:34 EDT 2004


> >     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.

I agree, the issue is that we have not been tracking what are the
common patterns that people actually use.

We need to learn more;  If you have any ideas on what kinds of things
you needed to do, please post those thoughts.


More information about the Mono-devel-list mailing list