ThreadStaticAttribute

ThreadStaticAttribute serializable

System (mscorlib.dll) class

This attribute designates that a static field should not be shared between threads. Each thread receives a separate instance of this field and can set and retrieve values for it without causing potential synchronization problems. This also means that each thread has a copy of the static field that may contain different values.

 public class  ThreadStaticAttribute  : Attribute {  // Public Constructors  public  ThreadStaticAttribute  ( ); } 

Hierarchy

Object Attribute ThreadStaticAttribute

Valid On

Field



C# in a Nutshell
C # in a Nutshell, Second Edition
ISBN: 0596005261
EAN: 2147483647
Year: 2005
Pages: 963

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net