标签:style blog color for sp div log bs as
for (int i = 0; i < lstall.Count - 1; i++) { for (int j = lstall.Count - 1; j> i; j--) { if (lstall[i] == lstall[j ]) { lstall.RemoveAt(j); } } }
倒序比较,从尾部删除。不影响未比较的集合部分索引。
标签:style blog color for sp div log bs as
原文地址:http://www.cnblogs.com/Xiaolangxiaofeng/p/4042109.html