System Namespace
Indicates that the value of a static field is unique for each thread.
A static field marked with ThreadStaticAttribute is not shared between threads. Each executing thread has a separate instance of the static field, and independently sets and gets values for that field. If the static field is accessed on a different thread, it will contain a different value.
Use this attribute as it is, and do not derive from it. The following is an example of ThreadStaticAttribute syntax:
[ ThreadStatic ]
static int value = 3;
For more information about using attributes, see Extending Metadata Using Attributes.
Attribute Thread | Threading