title: What is a thread-safe way to read/write a C# property in a class?
body: <p>I am new to C#. In Java, I can make read/write of a Java class member by having 'synchronized' keyword in the setter/getter method.</p>
  
  <p>Can you please tell me what is the right way to do the same in C#? In C# there is no synchronized keyword.  Should I use '[MethodImpl(MethodImplOptions.Synchronized)] annotation' mentioned in <a href="https://stackoverflow.com/questions/541194/c-sharp-version-of-javas-synchronized-keyword">C# version of java&#39;s synchronized keyword?</a>?</p>
  
  <p>Or use  Monitor.Enter (and subsequently Monitor.Exit)?</p>