How to get Parameters Type of EventHandlers
-
Dear All, I have an EventInfo object of an event. I want to know the parameters type of the event Handler function. for example, EventHandler is the event parameters of event handler is object and EventArgs. please help me regarding this. regards, Mohamed Hasan. Contact him at: hasansheik@hotmail.com hasansheik@yahoo.co.in hasansheik@lycos.com
-
Dear All, I have an EventInfo object of an event. I want to know the parameters type of the event Handler function. for example, EventHandler is the event parameters of event handler is object and EventArgs. please help me regarding this. regards, Mohamed Hasan. Contact him at: hasansheik@hotmail.com hasansheik@yahoo.co.in hasansheik@lycos.com
Get the
Type
object for the delegate behind the event and get the parameters of theInvoke
method. Something likeEventInfo []events = ktfaType.GetEvents();
for(int i = 0; i
This code relies on the fact that every delegate has an Invoke method which is automatically generated by the compiler depending on the type of delegate's declaration.Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro