See the section titled "Passing Data to Threads" in the "Creating Threads" document in 
the .NET Framework docn; you can get to it by finding "creating" under "threads" on 
the left side of the help window.

(Is there a standard way to point at such things?)

I would guess that you could also build a class that descends from Thread and that has 
a custom constructor to which you could pass other data as well as the ThreadStart 
delegate; but the technique described above will work.

At 10:18 PM 8/22/2003 +0200, Burkhard Perkens-Golomb wrote
>I'm porting a Java application to .NET. In Java you can use
>"InheritableThreadLocal"[�] to hand down variable values to child
>threads, and with .NET?
>
>In Java you can use "ThreadLocal", in .NET "ThreadStatic" for thread
>local variables without handing down values to child threads. But what
>about "InheritableThreadLocal"?  Has .NET a pendant?  Can I emulate
>the behaviour of InheritableThreadLocal in .NET?
>
>Thanks,
>
>        Burkhard
>
>Footnotes:
>[�] For the Java-Doc see
>    http://java.sun.com/j2se/1.4.2/docs/api/java/lang/InheritableThreadLocal.html
>
>--
>Burkhard Perkens-Golomb                 mailto: [EMAIL PROTECTED]
>sd&m AG                                 http://www.sdm.de
>software design & management AG
>Thomas-Dehler-Str. 27, 81737 Muenchen, Germany
>Tel +49 89 63812-398, Fax -410
>Tel Home +49 89 66 00 09 61


J. Merrill / Analytical Software Corp

===================================
This list is hosted by DevelopMentor�  http://www.develop.com
NEW! ASP.NET courses you may be interested in:

2 Days of ASP.NET, 29 Sept 2003, in Redmond
http://www.develop.com/courses/2daspdotnet

Guerrilla ASP.NET, 13 Oct 2003, in Boston
http://www.develop.com/courses/gaspdotnet

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to