How to run method in separate thread
Much easier to go for async invoke.new MethodInvoker(MyMethod).BeginInvoke(null, null);We can use the suitable overload in case of parameters/callback methods.Note: MethodInvoker is available inside the System.Windows.Forms name space. You can create your own delegates also.
Much easier to go for async invoke.
new MethodInvoker(MyMethod).BeginInvoke(null, null);We can use the suitable overload in case of parameters/callback methods. Note:
MethodInvoker
is available inside the System.Windows.Forms
name space. You can create your own delegates also.