EventInfo.GetRaiseMethod() - anyone made it work?
-
Hi! I need to raise some event dynamically through Reflection. So I get the EventInfo but my EventInfo.GetRaiseMethod() allways returns null no matter i use the parameters true, false or none. I saw several guys with this problem, but no solution. Any ideas? Workarounds? Thanks, vSoares
-
Hi! I need to raise some event dynamically through Reflection. So I get the EventInfo but my EventInfo.GetRaiseMethod() allways returns null no matter i use the parameters true, false or none. I saw several guys with this problem, but no solution. Any ideas? Workarounds? Thanks, vSoares
C# does not implement that. Get the field value of the event, cast to MulticastDelegate and invoke that to achieve what you need. :) xacc.ide-0.1-rc2 released! Download and screenshots