|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Generic delegate questionI have a class that has a generic method that looks something like this:
Public Sub Initialize(Of T As MyBusinessListBase(Of T, C), _ C As MyBusinessBase(Of C)) _ (ByRef dataSource As MyBusinessListBase(Of T, C), _ ByVal reportName As String, ByVal keyProperty As String, _ ByVal callBack As ReportChildCollectionCallback(Of T, C)) ' Do stuff to initialize a reportViewer report... End Sub Later, this object raises an event. In that event handler, I want to invoke the callback routine passed into the Initialize method. I'm having trouble understanding how to store a reference to the callback routine at the class level so that I can use it in the event handler. |
|||||||||||||||||||||||