[Mono-list] Embedded Mono: calling c# method from c does not work...

Robert Jordan robertj at gmx.net
Thu Oct 23 07:09:33 EDT 2008


Ipo wrote:
> help, help ;-)
> 
> I still have not found the way to unbox value returned by
> mono_runtime_invoke. I get MonoObject from my method and i know that there
> is IList from C#. 

1. you don't unbox reference type. Scratch this from your memory.

2. you allways get MonoObject* back, regardless of the method's
    signature. This is similar to what you get when you're using
    System.Reflection.

3. your MonoObject* IS actually an ArrayList, so you can just start
    using it.

Robert



More information about the Mono-list mailing list