title: Why can't I initialize readonly variables in a initializer?
body: <p>Why can't I initialize readonly variables in a initializer?
  The following doesn't work as it should:</p>
  
  <pre><code>class Foo
  {
      public readonly int bar;
  }
  
  new Foo { bar=0; }; // does not work
  </code></pre>
  
  <p>Is this due to some technical limits of the CLR?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I know that <code>new Foo { bar=0; }</code> is the same as <code>new Foo().bar=0;</code>, but is "readonly" enforced by the CLR, or is it just a compiler limitation?</p>