This question is locked. New answers and comments are not allowed.
When trying to convert C# code to VB I get error
Error 11 'Public Event Started(sender As Object, e As IIsWebSiteEventArgs)' is an event, and cannot be called directly. Use a 'RaiseEvent' statement to raise an event.
The orginal C# code
The generated VB code
Error 11 'Public Event Started(sender As Object, e As IIsWebSiteEventArgs)' is an event, and cannot be called directly. Use a 'RaiseEvent' statement to raise an event.
The orginal C# code
protected virtual void OnStopped(object sender, IIsWebSiteEventArgs e) | |
{ | |
if (this.Stopped != null) | |
{ | |
this.Stopped(sender, e); | |
} | |
} | |
The generated VB code
Protected Overridable Sub OnStopped(ByVal sender As Object, ByVal e As IIsWebSiteEventArgs) | |
If Me.Stopped <> Nothing Then | |
Me.Stopped(sender, e) | |
End If | |
End Sub | |