title: Basic Thread Locking in C#.NET WPF
body: <p>This seems like a basic question, but Google has not helped me... How do I do basic thread locking in C#.NET WPF? In my fairly simple user application, I have multiple threads performing time-intensive operations that save their results into one common data structure or read from this common data structure. I'd like to be able to lock() and unlock() around access to this data structure to maintain thread safety. However, there are many different places in my code that I access this data structure from, not just one. What .NET objects are used to implement this locking?</p>