B
Bern
How to pass a data to a newly created thread in the following?
--------------------------------------------------------------------
Thread newthread = new Thread (new ThreadStart (Method));
newthread.Start ();
void Method (){
.... some code. ...
}
--------------------------------------------------------------------
Thread newthread = new Thread (new ThreadStart (Method));
newthread.Start ();
void Method (){
.... some code. ...
}