InvalidOperationException with arrayLists
<p>I am getting this exception:</p>

<p><code>Collection was modified; enumeration operation may not execute.</code></p>

<p>Directly after this code:</p>

<pre><code>     else if (count == 0)
                    {
                        partCategory.Add(words[count].ToString());
                        foreach (string categoryS in partCategory)
                        {
                            if (categoryS != words[count].ToString())
                            {
                                partCategory.Add(words[count].ToString());
                            }
                        }
                    }
</code></pre>

<p>I am taking a guess that it may be the Add method that was used prior to it, but I'm not sure.</p>

<p>Call Stack Code:</p>

<pre><code>**********.exe!**********m.FileController.readSortText(string fileName = "**********extracted\\PC120701.txt", System.Windows.Forms.ProgressBar newProgress = {Value = 0 Min = 0 Max = 100}) Line 78 + 0x207 bytes   C#

**********.exe!**********.mainForm.unzipFile(string fileName = "**********") Line 133 + 0x42 bytes  C#
**********.exe!**********.mainForm.decompress_Click(object sender = {Text = "Unzip"}, System.EventArgs e = {X = 49 Y = 7 Button = Left}) Line 163 + 0x17 bytes  C#

[External Code] 
**********.exe!**********.Program.Main() Line 18 + 0x28 bytes   C#

[External Code] 
</code></pre>

<p>Thanks for your future help!</p>
