Beispiel #1
0
 internal ReadLockScope Downgrade()
 {
     if (base.IsDisposed)
     {
         throw new ObjectDisposedException(base.GetType().Name);
     }
     if (!this.lockChanged && !this.upgradeableReadLockExited)
     {
         this.lockChanged = true;
         ReadLockScope result = ReadLockScope.Create(base.ScopedReaderWriterLock);
         this.Release();
         return(result);
     }
     return(null);
 }