G
Guest
Hi all,
I'm attempting to port some C# code over to VB.Net. It was going well until
I hit the following code:
public virtual event PInputEventHandler KeyDown {
add { handlers.AddHandler(keyDownEventKey, value); }
remove { handlers.RemoveHandler(keyDownEventKey, value); }
}
It appears that one can declare Add and Remove accessors within an event
declaration in C#. Is there any way to do this in VB.Net?
Thanks.
I'm attempting to port some C# code over to VB.Net. It was going well until
I hit the following code:
public virtual event PInputEventHandler KeyDown {
add { handlers.AddHandler(keyDownEventKey, value); }
remove { handlers.RemoveHandler(keyDownEventKey, value); }
}
It appears that one can declare Add and Remove accessors within an event
declaration in C#. Is there any way to do this in VB.Net?
Thanks.