You can pass the variables to C# code this way: tst00.cs using System; class TestClass { public void PassVars( int o_id, object[] i_args, int i_bool ) { Console.WriteLine( "C# code:" ); Console.WriteLine( "o_id = {0}", o_id ); Console.WriteLine( "i_args[0] = {0}", i_args[0] ); Console.WriteLine( "i_args[1] = {0}", i_args[1] ); Console.WriteLine( "i_args[2] = {0}", i_args[2] ); // Convert object to s