Re: [IronPython] Passing a reference to a string

2007-06-19 Thread John Barham
> The output value of the ref parameter will be returned in the return value: So it is. Thanks! ___ users mailing list users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Re: [IronPython] Passing a reference to a string

2007-06-19 Thread John Barham
> Is it an out argument or a ref argument? According to .NET Reflector the signature of the method I'm calling is: public void _GetXml(..., ref string o_xml) so I presume the o_xml parameter is a "ref argument". Nonetheless its (changed) value is being returned as Martin said, despite the void

[IronPython] Passing a reference to a string

2007-06-19 Thread John Barham
I'm trying to call a C# method from IP that takes a reference to a string as one of its parameters. I'm passing it a System.String() object, but the string is not changed after I call the method. I know that CPython (and presumably IP) strings are immutable so how do I get C# to change the string