How to run method in separate thread





0/5 (0 vote)
You may actualy skip delegate types when assigning a method to execute: private void DoLongOperation( ) { // long processing } Thread thr = new Thread(DoLongOperation); thr.Start( );
You may actualy skip delegate types when assigning a method to execute:
private void DoLongOperation( ) {
// long processing
}
Thread thr = new Thread(DoLongOperation);
thr.Start( );