<PackageReference Include="NUnit" Version="5.0.0" />

System.Threading.Lock

sealed class Lock
namespace System.Threading { internal sealed class Lock { public ref struct Scope { public Scope(System.Threading.Lock l); public void Dispose(); } public bool IsHeldByCurrentThread { get; } public void Enter(); public bool TryEnter(); public bool TryEnter(TimeSpan timeout); public bool TryEnter(int millisecondsTimeout); public void Exit(); public Scope EnterScope(); public Lock(); } }