jeudi 29 mars 2018

C# Reflection: How to invoke a EventInfo?

how do i invoke the event behind a EventInfo ? I tried the following but "GetRaiseMethod" is always "null":

MethodInfo eventRaiseMethod = eventInfos[i].GetRaiseMethod();
eventRaiseMethod.Invoke(this, arrayOfPropertyChangedArgs);

Thank you :)

Update: Seems thats a bug in C# ???

EventInfo.GetRaiseMethod() always null





Aucun commentaire:

Enregistrer un commentaire