title: Store each value of a 'foreach' loop into a string array
body: <p>Consider:</p>
  
  <pre><code> string[] collection = new string[3]{"hi","hello","test"}; 
   string [] elements = new string [3];
   int index = 0;
   foreach(string anode in collection)
   {
     string[index++] = anode;
   }
  </code></pre>