Hi guys,
Im having problems converting my vb.net code into c# in order to achieve a raiseEvent like the following
In the dataOperations class I have the following event (1 of many)
Public Event returnUserDetails(ByVal name As String, ByVal username As String, ByVal pk As Integer)
then in a function were I process the user details search query from the database I call the event like
RaiseEvent returnUserDetails(name, username, pk)
now in the other class where I want to read these values I simply declare an object of type dataOperations class, and get the following method, which gives me access to the values
Protected Sub oDB_returnUserDetails(ByVal name As String, ByVal username As String, ByVal pk As Integer) Handles oDB.returnUserDetails
End Sub
.. I was wondering if its done in a similar way in c# as I did try to look up tutorials, but am confused with the delegates and how to create a simple event like the one I explained up in my post.
Thanks