views:

74

answers:

0

In a C++/CLI we have a function that returns this: array^ OutBuffer = gcnew array(BufferSize);

IronPython treats it as a byte[].

In C#, we have a funtion that returns this: OutBuffer = new Byte[InBuffer.Length];

While a C# client treats Outbuffer as a byte[], IronPython treats it as a tuple containing multiple arrays.

How do we make IronPython relate to OutBuffer as a byte[] and not as a tuple?

Why the discrepancy between the C# and C++/CLI?