[Python.NET] How to use "out" or "ref" on method parameter list

Jill-Connie Lorentsen j_lorentsen at hotmail.com
Thu Mar 25 07:26:21 EST 2004


I have a DotNet class with methods with the following signature:

public bool MyMethod(out int myVariable)
{
  myVariable = 5;
  return true
}

Does anybody know how I cancall them from Python via CLR?
I've tried MyMethod(a), where a has been an empty list, a list with one
element, an integer etc, but nomatter what i get an error saying TypeError:
no method matches given arguments

Can anybody help?

Jill

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/pythondotnet/attachments/20040325/f970b70e/attachment.html


More information about the PythonDotNet mailing list