In a C++/CLI we have a function that returns this:
array<Byte>^ OutBuffer = gcnew array<Byte>(BufferSize);
IronPython treats it as a byte[]
.
In C#, we have a function that returns this:
OutBuffer = new Byt开发者_开发百科e[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?
EDIT: This question is posed and apparently solved, but no answer supplied. Can this be corrected?
精彩评论