public void Dispose() { if (_isNotifyEnabled) { _obj.DowngradeToNotify(_isWriteEnabled); } else if (!_isWriteEnabled) { _obj.DowngradeOpen(); } }