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: }
原文:http://www.cnblogs.com/jackping/p/3919536.html