title: Adding values to a C# array
body: <p>Probably a really simple one this - I'm starting out with C# and need to add values to an array, for example:</p>
  
  <pre><code>int[] terms;
  
  for(int runs = 0; runs &lt; 400; runs++)
  {
      terms[] = runs;
  }
  </code></pre>
  
  <p>For those who have used PHP, here's what I'm trying to do in C#:</p>
  
  <pre><code>$arr = array();
  for ($i = 0; $i &lt; 10; $i++) {
      $arr[] = $i;
  }
  </code></pre>