Defines the lock that implements single-writer/multiple-reader semantics. This is a value type.
Assembly: mscorlib (in mscorlib.dll)
Thetype exposes the following members.
|Equals(LockCookie)||Indicates whether the current instance is equal to the specified .|
|Equals(Object)||Indicates whether a specified object is a and is equal to the current instance. (Overrides ValueType.Equals(Object).)|
|GetHashCode||Returns the hash code for this instance. (Overrides ValueType.GetHashCode().)|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|ToString||Returns the fully qualified type name of this instance. (Inherited from ValueType.)|
The following example shows how to request a reader lock, upgrade the reader lock to a writer lock, and save the . It then uses the to downgrade to a reader lock again.
This code is part of a larger example provided for the ReaderWriterLock class.