System.Threading.Lock
Lock.Scope Struct
The holder of an entered lock, which releases it when disposed.
public ref struct Lock.ScopeMethods
Lock.Scope.Dispose() Method
Leaves the lock.
public void Dispose();The holder of an entered lock, which releases it when disposed.
public ref struct Lock.ScopeLeaves the lock.
public void Dispose();