public LockSpec(LockType type, LockingDictionary <TKey, TValue> dictionary) { Type = type; _dictionary = dictionary; _previous = _lastLock; _lastLock = this; }
public void Dispose() { _lastLock = null; _lock.Dispose(); }