There is a class, such as
public class MyClass { public void Method1(params) { } public void Method2(params) { } public void Method3(params) { } }
Then somewhere in the code, at the request of the user, methods are called from one of the instances in an arbitrary order. The user clicked the desired button, the method was executed.
theMyClass.Method1(params); theMyClass.Method2(params); theMyClass.Method1(params); theMyClass.Method3(params); *****
This should be stored somewhere so that it is possible to perform the same methods in the same order for another instance of the class MyClass
.
I suspect that you need to save the commands in the queue, and then execute them with another parameter. But before I implement it, I would like to know if there are other ways?
Reflection.MethodBase
to store a link to the method, object, and an array of parameters forInvoke(object , params[] )
- nick_n_a