Recursive / nested locking in C# with the lock statement [duplicate]
问题 This question already has answers here : Closed 9 years ago . Possible Duplicate: Re-entrant locks in C# I've looked here on StackOverflow and on MSDN, and can't believe that I couldn't find this question lingering out there on the internets. Let's say I have a class with a private member that I want to access in several public methods. These public methods will be called by different threads, hence the need for synchronization. public class MyClass { private Object SomeSharedData = new