[Mono-list] Mono Embedding: How can I use a Generic Class from mscorlib.dll

2015-03-23 Thread LinWuxiang
Hello everybody. How can I instantiate a generic type, like ListString from mscorlib? I thought I should use “mono_class_from_generic_parameter”, but not sure how to use this function. Thanks for any hints and suggestions. Wuxiang___

Re: [Mono-list] Mono Embedding: How can I use a Generic Class from mscorlib.dll

2015-03-23 Thread LinWuxiang
Sorry for the an incomplete question. Here is more information. I am trying to embed mono inside c++ in Windows and Linux. I have tried: MonoImage* image = mono_get_corlib(); MonoClass* class = mono_class_from_name(image, System.Collections.Generic, ListT); MonoClass* class =

Re: [Mono-list] Mono Embedding: How can I use a Generic Class from mscorlib.dll

2015-03-23 Thread Robert Jordan
On 23.03.2015 15:13, LinWuxiang wrote: Hello everybody. How can I instantiate a generic type, like ListString from mscorlib? I thought I should use “mono_class_from_generic_parameter”, but not sure how to use this function. There used to be no embedding APIs for this in the past, and it