I have a method like public void MethodName(int prm)
. And i have another method like public void MethodName2(Action<int> prm)
.
My problem is that I have to create a expression tree that takes MethodName2
and run it with MethodName
like MethodName2(MethodName)
. But I can't find a we to pass function to another function using expression trees. Can someone help me please?
Aucun commentaire:
Enregistrer un commentaire