我得到了这个例外:
Collection was modified; enumeration operation may not execute.
直接在此代码之后:
else if (count == 0)
{
partCategory.Add(words[count].ToString());
foreach (string categoryS in partCategory)
{
if (categoryS != words[count].ToString())
{
partCategory.Add(words[count].ToString());
}
}
}
我猜测它可能是之前使用的 Add 方法,但我不确定。
调用堆栈代码:
**********.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]
感谢您未来的帮助!