How can I pass a parameter to a new thread?
Thread t = new Thread(new ThreadStart(ThreadProc));
t.Start();
Thread.Sleep(0);
Herfried K. Wagner [MVP] - 29 Jan 2008 21:50 GMT
"rkbnair" <rkbnair@community.nospam> schrieb:
> How can I pass a parameter to a new thread?
Take a look at 'ParameterizedThreadStart' (since .NET 2.0).

Signature
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Jon Skeet [C# MVP] - 29 Jan 2008 21:59 GMT
> How can I pass a parameter to a new thread?
>
> Thread t = new Thread(new ThreadStart(ThreadProc));
> t.Start();
> Thread.Sleep(0);
See http://pobox.com/~skeet/csharp/threads/parameters.shtml

Signature
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
World class .NET training in the UK: http://iterativetraining.co.uk