[Ironpython-users] How to pass ref and out to Ironpython?

Jeff Hardy jdhardy at gmail.com
Thu May 24 17:57:52 CEST 2012


On Thu, May 24, 2012 at 2:28 AM,  <soardex at ovi.com> wrote:
>
>
> Hi!
>
>
> How to pass ref and out to IronPython?
> Here is sample code for C#:
>
> CreateContext( byte[] data, ref byte[] dataout );
>
> or
>
> CreateContext( byte[] data, out byte[] dataout );
>
> How to get the return data of dataout to ironpython?

See http://ironpython.net/documentation/dotnet/dotnet.html#ref-and-out-parameters
for the details,  but basically, they're returned as part of a return
tuple.

- Jeff


More information about the Ironpython-users mailing list