[IronPython] Add/remove python function to C# event in C#

Dino Viehland dinov at exchange.microsoft.com
Mon Jul 14 01:50:42 CEST 2008


objOrType.someEvent += somePythonFunctionOrCallableObject

        And

objOrType.someEvent -= somePythonFunctionOrCallableObject

Should just work.

-----Original Message-----
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Dan Eloff
Sent: Sunday, July 13, 2008 4:37 PM
To: Discussion of IronPython
Subject: [IronPython] Add/remove python function to C# event in C#

How could I add/remove a python callable to a C# event? Surely there
must be a simple interface that uses ReflectedEvent/BoundEvent under
the hood.

Thanks,
-Dan
_______________________________________________
Users mailing list
Users at lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com



More information about the Ironpython-users mailing list