Skip to content
Advertisement

Pass array to C# from C++ via mono

I need to pass an array from C++ to C# using mono. But I can’t get mono_array_set() to compile. So how can I pass an array from C++ to C#?

I’ve tried mono_runtime_invoke() which compiles but gives a runtime error.

JavaScript

JavaScript

JavaScript

Advertisement

Answer

This works:

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement