lundi 5 mars 2018

Creating event via Reflection

At the beginning I would like to point out that I'm new in Reflections so my question can be dumb.

Is there possibility to dynamicly create event which will be raised when internal method is called? Example:

public static class ClassWithInternalMethod
{
    internal static extern bool InternalMethod(string a, bool b);
}

What I want is to have callback whenever InternalMethod is invoked.





Aucun commentaire:

Enregistrer un commentaire