[Mono-dev] Extract MonoField

Robert Jordan robertj at gmx.net
Wed Jun 10 20:09:05 EDT 2009


Robert Jordan wrote:
> This is the only way to instantiate generic types using
> the public embedding API. Same for generic methods.

Sorry, scratch this. I've read List<T> in place of List<int>

mono_object_new(
	mono_class_from_mono_type(mono_field_get_type(field))

should work just fine.

Robert



More information about the Mono-devel-list mailing list