public void ReleaseWriterLock() { lock (this) { if (!HasWriterLock()) throw new ApplicationException ("The thread does not have the writer lock."); ReleaseWriterLock (1); } }