I have an interesting question about C # code. Basically, I need to call a method
BCI2000AutomationLib.IBCI2000Remote.StartupModules(ref System.Array)
Using Visual Studio 2010, the following code compiles and works fine:
// Startup modules string[] modules = new string[3]; modules[0] = "SignalGenerator --local"; modules[1] = "DummySignalProcessing --local"; modules[2] = "DummyApplication --local"; ok_conn = bci.StartupModules(ref modules);
Now porting this to a game engine (such as Unity 3D) requires stricter C # code since it uses the Mono C # compiler. Therefore, for the same code, I get the following compilation error:
The best overloaded method match for 'BCI2000AutomationLib.IBCI2000Remote.StartupModules (ref System.Array)' has some invalid arguments Argument 1: cannot convert from 'ref string []' to 'ref System.Array'
Can you give advice on how to rewrite this code block to a more strict encoding to eliminate the declared error?
source share