/// <summary> /// Releases the lock. Subsequent calls to this method do nothing. /// </summary> public void Dispose() { if (parent == null) { return; } parent.Unlock(); parent = null; }