Discussion:
[Python.NET] Passing by reference
Kenny Koller
2012-05-18 21:33:13 UTC
Permalink
_________________________________________________
Python.NET mailing list - PythonDotNet-+ZN9ApsXKcEdnm+***@public.gmane.org
http://mail.python.org/mailman/listinfo/pythondotnet
Brian Lloyd
2012-05-19 02:21:23 UTC
Permalink
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
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?
public MccDaq.ErrorInfo <http://../../Classes/ErrorInfo_Class.htm> CIn(int
counterNum, out ushort count)
Thanks,
Kenny
_________________________________________________
http://mail.python.org/mailman/listinfo/pythondotnet
--
Brian Lloyd
brian.d.lloyd-***@public.gmane.org
(c) 540.845.2975
Loading...