dimanche 1 janvier 2017

Create lambda action delegate dynamically

Can I create an Action delegate with a lambda expression like this () => Method(args) dynamically when I have the target, MethodInfo and arguments to pass in?

public class DelegateData
{
    public object target;
    public MethodInfo method;
    public object[] args;
}





Aucun commentaire:

Enregistrer un commentaire