[Mono-list] Obtaining a generic MonoMethod
Robert Jordan
robertj at gmx.net
Tue Dec 5 11:18:58 EST 2006
Hi Hari,
Raja R Harinath wrote:
>
> Currently the only way to work with open generic types is to use
> System.Reflection. I believe it will be that way for some time till we
> figure out a reasonable API.
How about exposing these functions:
/* like Type.MakeGenericType */
MonoType*
mono_type_make_generic(MonoType *type, int type_argc,
MonoType **types);
implementation similar to
reflection.c:mono_class_bind_generic_parameters.
and
/* like MethodInfo.MakeGenericMethod */
mono_method_make_generic(MonoMethod *method, type_argc,
MonoType **types);
implementation similar to reflection.c:
mono_reflection_bind_generic_method_parameters
Robert
More information about the Mono-list
mailing list