I believe that this should work, but the name would need to be Rubified as "add_my_event".
From: [email protected] [mailto:[email protected]] On Behalf Of Mark Ryall Sent: Monday, May 04, 2009 6:02 AM To: [email protected] Subject: [Ironruby-core] clr events in ruby Hi everyone, I'm messing around with trying to create ironruby mock (actually recorder) implementations of various sorts of CLR type features and am struggling with events. Is it currently possible to create an implementation of a CLR interface that contains an event? For example using System; namespace ClassLibrary { public interface IHaveAnEvent { event EventHandler MyEvent; } } ... class ClassWithEvent include ClassLibrary::IHaveAnEvent def initialize @blocks = [] end def add_MyEvent ???? or something ???? end end Is this possible or not yet available?
_______________________________________________ Ironruby-core mailing list [email protected] http://rubyforge.org/mailman/listinfo/ironruby-core
