[Mono-list] Calling method with complex arguments (embedded)

Jonathan Pryor jonpryor at vt.edu
Wed Mar 25 13:28:04 EDT 2009


On Wed, 2009-03-25 at 17:47 +0100, Robert Bielik wrote:
> I'm trying to call a function with prototype:
...
> Tried to retrieve the MonoClass* for System.Collections.Generic.List via
> mono_class_from_name(mono_get_corlib(), "System.Collection.Generic", "List") but it
> returns NULL. 

Try using "List`1" for the name instead of "List".

Generic types have the number of type parameters encoded within their
name (to permit "overloading" a type based on the number of type
parameters), so you can't omit the `N from the type's name.

 - Jon




More information about the Mono-list mailing list