[Ironruby-core] Events?

Tomas Matousek Tomas.Matousek at microsoft.com
Thu Aug 14 16:22:49 EDT 2008

I'm not sure I understand the scenario. Would you like to declare an event on Ruby object that you want to hook from C# code? Like rubyEngine.Operations.GetMember(obj, "my_event") += delegate { ...}?


From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Sean Clark Hess
Sent: Thursday, August 14, 2008 12:04 PM
To: ironruby-core at rubyforge.org
Subject: [Ironruby-core] Events?

Hi all,

Is there a built-in event system for IronRuby?  I know I can handle events with button.click { }, but what if I want to dispatch my own, custom events (from a class I created myself?).

I wrote my own event system, but I would prefer to use a built-in dispatch method if it exists.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20080814/3acb2e31/attachment.html>

More information about the Ironruby-core mailing list