O'Reilly logo

C# in a Nutshell by Peter Drayton, Ted Neward, Ben Albahari

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

LockCookie

Synopsis

This structure returns a LockCookie representing the type of lock (read or write) released. The same type of lock can be restored by calling ReaderWriterLock.RestoreLock().

public struct LockCookie {
// No public or protected members
}

Hierarchy

System.ObjectSystem.ValueTypeLockCookie

Returned By

ReaderWriterLock.{ReleaseLock(), UpgradeToWriterLock()}

Passed To

ReaderWriterLock.{DowngradeFromWriterLock(), RestoreLock()}

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required