store each value of foreach loop into string array
<p>how I need to store each values of a foreach loop into an string array.</p>

<pre><code>string [] elements = new string [3];
foreach(xmlnode anode in somecollection)
{
   //here i need to set the string array for each element of SomeCollection.
}
</code></pre>

<p>thanks </p>
