[Ironruby-core] Delegates (agian)

Joe Chung lists at ruby-forum.com
Fri Oct 26 13:02:20 EDT 2007


Dermot Hogan wrote:
> So in C#, we have x += new EventHandler(mymethod)
> 
> and in VB (I'm a bit rusty but something like this):
> 
> x += new EventHandler(AddressOf mymethod)
>
The syntax for VB event handlers is

AddHandler x.myevent, AddressOf mymethod

assuming that the event being handled here is myevent.
-- 
Posted via http://www.ruby-forum.com/.


More information about the Ironruby-core mailing list