[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


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.

Users mailing list
Users at lists.ironpython.com

More information about the Ironpython-users mailing list