[IronPython] Implementing an interface with ref parameters

Dody Gunawinata empirebuilder at gmail.com
Fri Aug 17 14:08:32 CEST 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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20070817/dee98d6a/attachment.html>

More information about the Ironpython-users mailing list