Is it possible to make a new string in a foreach loop?
<pre><code>int x = 0;
string1 = "Hi,Bye";
string[] string2 = string1.Split(",");

foreach (string item in string2)
{
   string x = item;
   x++;
}
</code></pre>

<p>Now is there any way to actually accomplish making a new string with a "preset" name with the string? Hopefully I was clear enough for you to understand what I want to do, but it's kind of hard to explain this. </p>
