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