Click here to Skip to main content
15,881,757 members
Articles / Programming Languages / C#
Alternative
Tip/Trick

How to run method in separate thread

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
24 Mar 2011CPOL 4.7K   1  
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( );

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Student
Ukraine Ukraine
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
-- There are no messages in this forum --