[Mono-list] Embedded Mono: calling c# method from c does not work...
    Ipo 
    ipo at penttinen.org
       
    Thu Oct 23 06:56:29 EDT 2008
    
    
  
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#. 
i use code like this:
c
MonoObject *oReturn = (MonoObject *)mono_runtime_invoke(my_method, obj,
args, &exception);
in assembly:
       public override ArrayList GetSupported()
        {
            ArrayList al = new ArrayList();
            al.Add("string1"); 
            al.Add("string2");
            return al;
        }
Yours.
Ipo
-- 
View this message in context: http://www.nabble.com/Embedded-Mono%3A-calling-c--method-from-c-does-not-work...-tp20085126p20128647.html
Sent from the Mono - General mailing list archive at Nabble.com.
    
    
More information about the Mono-list
mailing list