title: Which is better between a readonly modifier and a private setter?
body: <p>I've been working on creating a class and suddenly a thought came to my mind of what is the difference between the two codes:</p>
  
  <pre><code>public readonly string ProductLocation;
  </code></pre>
  
  <p>AND</p>
  
  <pre><code>public string ProductLocation
  {
       get;
       private set;
  }
  </code></pre>
  
  <p>Can you guys give me idea when to use the following better. thanks.</p>