I wrote a generic EventArgs class in my VB.NET solution:
Public Class EventArgs(Of T)
Inherits EventArgs
Private _eventData As T
Public ReadOnly Property EventData() As T
Get
Return _eventData
End Get
End Property
Public Sub New(ByVal data As T)
_eventData = data
End Sub
End Class
When I use it as in the following example, it says that e is not CLS-compliant. Anyone know how to get around this, or at least can explain why this happens?
Event MarketModeChanged(ByVal sender As Object, ByVal e As EventArgs(Of Integer))