[Mono-list] Embedded mono doesn't support generic types

Robert Jordan robertj at gmx.net
Thu Dec 14 04:59:19 EST 2006


Kapp, Josh wrote:
> Hi,
> 
>  
> 
> I've got a DLL assembly containing some generic types that runs fine
> when linked to a .NET app and run from the command line.  However, when
> I call into same assembly via embed mono into a Cocoa app I get a
> TypeLoadException.  If I remove the generic types it runs fine.  Is
> there something I need to call on the embedded API to enable generic
> support?

Pass a 2.0 assembly to mono_jit_init (). If you're compiling Mono from
SVN HEAD (1) you could use the new mono_jit_init_version () instead.
The format of the version parameter is "v2.0.50727".

http://www.mail-archive.com/mono-devel-list@lists.ximian.com/msg10753.html

Robert

(1) Maybe the feature is already releases with Mono 1.2.*, but I'm
     not sure.



More information about the Mono-list mailing list