title: C# readonly vs Get
body: <p>Are there any differences between the readonly modifier and get-only properties?</p>
  
  <p>Example:</p>
  
  <pre><code>public class GetOnly
  {
      public string MyProp { get; }
  }
  
  public class ReadOnly
  {
      public readonly string MyProp;
  }
  </code></pre>
  
  <p>Bonus: is there a way to make an interface that works with both? (to use with generics)</p>
  
  <pre><code>public interface ISomething
  {
      public string MyProp { get; }
  }
  
  public class GetOnly : ISomething
  {
      public string MyProp { get; }
  }
  
  public class ReadOnly : ISomething // Cannot implement
  {
      public readonly string MyProp;
  }
  </code></pre>
  
  <p>Many thanks in advance!</p>