Suggest code to make event handlers work (VB.Net -> C#)
The converter could suggest the code needed to bind an event handler.
Example:
Private Sub SomeObject_SomeEvent(Arguments as Object) Handles SomeObject.SomeEvent
The following code could be suggested (in a comment):
SomeObject.SomeEvent += SomeObject_SomeEvent;
16
votes
1 comment
-
Pablo(UY)
commented
Also when converting from C#->VB.net
Suggest in a comment, that
SomeObject.Someth += SomeObject_Someth,
could be
Addhandler SomeObject.Someth, AddressOff SomeObject_Someth
the same thing for removehandler