ContextStaticAttribute

ContextStaticAttribute serializable

System (mscorlib.dll) class

This attribute designates that a static field should not be shared between contexts. Each context accesses a separate copy of this field and is able to set and retrieve values without accidentally overwriting data set by another context. Just as thread-local storage is used to store data in a per-thread fashion, this is used to store static data in a per-context fashion.

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

Hierarchy

Object Attribute ContextStaticAttribute

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