ReaderWriterLockSlimExtensions.Lock Method

Tungsten Suite

ReaderWriterLockSlimExtensionsLock Method

Enters a read or write lock on the ReaderWriterLockSlim

Namespace:  W.Threading.Lockers
Assembly:  Tungsten.Threading.Lockers (in Tungsten.Threading.Lockers.dll) Version: 2.0.1
Syntax
C#
public static void Lock(
	this ReaderWriterLockSlim this,
	LockTypeEnum lockType
)

Parameters

this
Type: System.ThreadingReaderWriterLockSlim
The object to provide resource locking
lockType
Type: W.Threading.LockersLockTypeEnum
The type of lock to enter

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ReaderWriterLockSlim. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also