public ReadAccessScope(Locked <T> target) { this.target = target; Monitor.Enter(target.padlock); }
public WriteAccessScope(Locked <T> target) { this.target = target; this.target.padlock.EnterWriteLock(); }