title: Why can't readonly be used with properties
body: <p>Why properties in C# cannot be readonly ?</p>
  
  <p>When I try to have a property readonly it states that:</p>
  
  <blockquote>
    <p>a modifier 'readonly' is not valid for this item</p>
  </blockquote>
  
  <p>Simmilar question was asked here:
  <a href="https://stackoverflow.com/questions/2166744/why-cant-properties-be-readonly">Why can&#39;t properties be readonly?</a>
  But the question was asked 5 years ago, and the answer provided then was: Because they didn't think it thru. Is this still the case after 5 years?</p>
  
  <p>edit:
  Code example:</p>
  
  <pre><code>public class GreetingClass
  {
      public readonly string HelloText { get; set; }
  }
  </code></pre>