3 ms·Looks like if (!Monitor.IsEntered(_x)) throw new InvalidOperation. Will do the trick in C#by alkonaut 4y agoLooks like if (!Monitor.IsEntered(_x)) throw new InvalidOperation. Will do the trick in C#