Suppose I have the following code:
public class SomeClass() { private readonly object _lock = new object(); public void SomeMethodA() { lock
This is supported in .NET 4.5 using Monitor.IsEntered(object).