Sorry… I just looked at the source code and events are indeed not
implemented yet. I promised Tomas I’d try really really hard to finish
the typegen code this month, so you shouldn’t have to wait too long.
From: [email protected]
[mailto:[email protected]] On Behalf Of Mark R.
Sent: Monday, May 04, 2009 6:46 AM
To: [email protected]
Subject: Re: [Ironruby-core] clr events in ruby
No dice i’m afraid:
add_MyEvent': undefined methodadd_MyEvent’
for IronRuby.Classes.Object$5:ClassWithEvent (NoMethodError)
from ClassLibrary:0:in `RegisterEvent’
add_MyEvent': The method or operation is not implemented. (System::NotImplementedException) from ClassLibrary:0:inRegisterEvent’
On Mon, May 4, 2009 at 11:25 PM, Curt H.
<[email protected]mailto:[email protected]> wrote:
I believe that this should work, but the name would need to be Rubified
[email protected]mailto:[email protected]
[mailto:[email protected]mailto:[email protected]]
On Behalf Of Mark R.
Sent: Monday, May 04, 2009 6:02 AM
To: [email protected]mailto:[email protected]
Subject: [Ironruby-core] clr events in ruby
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?
public interface IHaveAnEvent
event EventHandler MyEvent;
@blocks = 
???? or something ????
Is this possible or not yet available?