Method Dispose
Dispose()
Releases the write guard, exiting write mode. No-op if the guard did not enter the lock. If the guard was obtained by upgrading an upgradeable read guard, the thread returns to upgradeable read mode.
Declaration
public void Dispose()
Implements
Exceptions
| Type | Condition |
|---|---|
| InvalidOperationException | The guard entered the lock and disposal was attempted on a different thread than the one that entered it. |