Error exposing event througt interface
- by carlos
I have this interface
Interface IProDataSource
Delegate Sub DstartingHandler(ByVal sender As Object, ByVal e As EventArgs)
Event starting_Sinc As DstartingHandler
End Interface
Trying to use the intarce like this
Public Class DataSource : Implements IProDataSource
Public Event starting_Sinc As DstartingHandler Implements IProDataSource.starting_Sinc
Public Delegate Sub DstartingHandler(ByVal sender As Object, ByVal e As EventArgs)
End Class
Gives me the next error
Event 'starting_Sinc' cannot implement
event 'starting_Sinc' on interface
'IProDataSource' because their
delegate types 'DstartingHandler' and
'IProDataSource.DstartingHandler' do
not match.