开发者

how to declare a byte[] in C# so that ironpython interprets it as byte[] and not as a tuple [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 11 years ago.

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?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜