[IronPython] Implementing an interface with ref parameters
Dody Gunawinata
empirebuilder at gmail.com
Fri Aug 17 05:08:32 PDT 2007
Hi all,
I'm trying to implement a C# interface with methods that contains ref
parameter, eg:
public interface IContent
{
void BeginProcess(ref bool captureContent);
void EndProcess(string content);
}
A straight implementation will not work because IronPython does not modify
the captureContent value
class ImageGallery(IContent):
def BeginProcess(captureContent):
captureContent = False # This doesn't work.
--
nomadlife.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ironpython.com/pipermail/users-ironpython.com/attachments/20070817/dee98d6a/attachment.htm
More information about the Users
mailing list