[Mono-devel-list] Embedding Mono - MonoArray
priewasser at gmx.at
Sat Jun 5 06:28:29 EDT 2004
On Fri, 04 Jun 2004 16:56:41 -0700, Michael J. Ryan
<tracker1_lists at theroughnecks.com> wrote:
> doesn't this work?
> int MyArray = new int;
> int MyArray2 = new int;
I tried the following:
It didn't work
> Friedrich Priewasser wrote:
>> Can anyone tell me how to create a MonoArray for simple types like
>> int's (for "complex" datatypes it allready works)?
>> I tried to invoke the C# method "public void DoSomething(int values)"
>> To do this i used the following code, but it didn't work
>> (mono_runtime_invoke caused an error):
>> array=mono_array_new(domain, mono_defaults.int32_class, 2);
>> desc = mono_method_desc_new (":DoSomething(int)",TRUE);
>> method = mono_method_desc_search_in_class (desc, klass);
>> mono_runtime_invoke (method,NULL,params,NULL);
More information about the Mono-devel-list