循环删除集合里的值

   1:   List<string>.Enumerator enumerator = files.GetEnumerator();
   2:   while (enumerator.MoveNext())
   3:   {
   4:       if (File.Exists(enumerator.Current))
   5:       {
   6:           File.Delete(enumerator.Current);
   7:       }
   8:   }
原文地址:https://www.cnblogs.com/jackping/p/3919536.html