title: What's the difference between a property with a private setter and a property with no setter?
body: <p>If I want a read-only property, I write it like:</p>
  
  <pre><code>public int MyProperty { get { //Code goes here } }
  </code></pre>
  
  <p>However, the Microsoft example (and a few other examples I've seen) are written like:</p>
  
  <pre><code>public int MyProperty { get; private set; }
  </code></pre>
  
  <p>Is there any difference between these two, and should I start writing properties like this?</p>