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

LinWuxiang linwx_xin at hotmail.com
Mon Mar 23 15:24:16 UTC 2015


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", "List<T>");

MonoClass* class = mono_class_from_name(image, "System.Collections.Generic", "List<String>");

MonoClass* class = mono_class_from_name(image, "System.Collections.Generic", "List");




but with no success. Thanks for any suggestions!





From: Wuxiang Lin
Sent: ‎Monday‎, ‎March‎ ‎23‎, ‎2015 ‎10‎:‎42‎ ‎PM
To: mono-list at lists.ximian.com





Hello everybody.




How can I instantiate a generic type, like List<String> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20150323/252c784a/attachment.html>
-------------- next part --------------
_______________________________________________
Mono-list maillist  -  Mono-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


More information about the Mono-list mailing list