Mono Class Library: System NamespaceSystem.ThreadStaticAttribute Class |
See Also: ThreadStaticAttribute Members
System.Object
System.Attribute
System.ThreadStaticAttribute
|
A static field marked with this attribute is not shared between threads. Each executing thread has a separate instance of the field, and independently sets and gets values for that field.
Note:[Edit]Do not specify initial values for fields marked with this attribute, because such initialization occurs only once, when the class constructor executes, and therefore affects only one thread. If you do not specify an initial value, you can rely on the field being initialized to its default value if it is a value type, or to null if it is a reference type.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0