Dec 1, 2008

[ThreadStatic] and ThreadPool threads

You can use [ThreadStatic] on static fields of a class to store state - per thread.

Please note that using the CLR ThreadPool may re-use a thread and the state is still sticking to that thread.