title: differences between array initialization and assignment syntax in C#
body: <p>In C#, what exactly is the reason for this syntax to work for an array initialization :</p>
  
  <pre><code>string[] strArray = {"foo1", "foo2"}; //works
  </code></pre>
  
  <p>but not for an assignment :</p>
  
  <pre><code>strArray = {"foo1", "foo2"}; //does not work, throws "; expected" exception
  </code></pre>