You should try some workaorund with a function in C# which has this signature.
public passIntegers(int[] data, int count, int b) {
List<int> integers = new List<int>();
for( int i = 0; i < count; i++ ) {
integers.add(data[i]);
}
Passa( integers, b);
}
Read my article
Calling all station with example code which demonstrates the use of C++ with C#.