var buffer = new List<string>(showDict.Keys);
foreach (var key in buffer)
{
if (showDict[key] != "")
{
AddMessage(showDict[key]);
showDict[key] = "";
}
}
Dictionary can not change the value of the iteration
Guess you like
Origin www.cnblogs.com/mcyushao/p/11671937.html
Recommended
Ranking