[Python.NET] Passing by reference

Brian Lloyd brian.d.lloyd at gmail.com
Sat May 19 04:21:23 CEST 2012


Hi Kenny - take a look at the unit tests at:

http://pythonnet.svn.sourceforge.net/viewvc/pythonnet/trunk/pythonnet/src/tests/test_method.py?revision=140&view=markup

There are few tests there that demonstrate out and ref params. Short answer
is that methods that return void and
take an out param will return the out param. Methods that return a value
and take out params return a tuple of the
form (retval, outparam1, outparam2...).

- Brian

On Fri, May 18, 2012 at 5:33 PM, Kenny Koller <Kenny_Koller at bio-rad.com>wrote:

> Hi Everyone,
>
> I'm continuing my work with the MCC USB-Quad08. So importing the
> DLL/assembly was pretty straight forward (it's pretty much the same as
> IronPython). But how do pass arguments by reference?
>
> For instance I want to call this method:
>
> public MccDaq.ErrorInfo <http://../../Classes/ErrorInfo_Class.htm> CIn(int
> counterNum, out ushort count)
>
>
> Thanks,
>
> Kenny
>
> _________________________________________________
> Python.NET mailing list - PythonDotNet at python.org
> http://mail.python.org/mailman/listinfo/pythondotnet
>



-- 
Brian Lloyd
brian.d.lloyd at gmail.com
(c) 540.845.2975
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythondotnet/attachments/20120518/019e87f3/attachment.html>


More information about the PythonDotNet mailing list