In my class I have a static method
public static void DoWork(int param) ...
I want to run that method like:
Form.BeginInvoke(DoWork, param);
Is this operation possible?
I tried with the MethodInvoker class ... but I don't want to define the method body inline.
Is there any generic delegate? Or do you know any other way of calling this without defining a delegate object (private delegate void DoWorkDelegate(int param)
)?