A Sandcastle Documented Class Library
![]() | SynchronizationExtensionsWaitToRead Method |
Example use: using (rwLock.WaitToRead()) {...}
Namespace: Tego.Utils
Assembly: Tego (in Tego.dll) Version: 1.0.6599.21663 (1.2017.413.1)

public static IDisposable WaitToRead( this ReaderWriterLockSlim rwLock )
<ExtensionAttribute> Public Shared Function WaitToRead ( rwLock As ReaderWriterLockSlim ) As IDisposable
public: [ExtensionAttribute] static IDisposable^ WaitToRead( ReaderWriterLockSlim^ rwLock )
[<ExtensionAttribute>] static member WaitToRead : rwLock : ReaderWriterLockSlim -> IDisposable
Parameters
- rwLock
- Type: System.ThreadingReaderWriterLockSlim
[Missing <param name="rwLock"/> documentation for "M:Tego.Utils.SynchronizationExtensions.WaitToRead(System.Threading.ReaderWriterLockSlim)"]
Return Value
Type: IDisposable[Missing <returns> documentation for "M:Tego.Utils.SynchronizationExtensions.WaitToRead(System.Threading.ReaderWriterLockSlim)"]
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).