Enters a read lock and returns a disposable object that, when disposed, will exit the lock.
public static IDisposable AcquireReadLock(this ReaderWriterLockSlim theLock)
| parameter | description |
|---|---|
| theLock | The lock on which the read lock should be entered. |
A disposable object that, when disposed, will exit the lock.