List去重复

mac2022-06-30  88

for (int i = 0; i < List.Count; i++) { for (int j = List.Count - 1; j > i; j--) { if (List[i] == List[j]) { List.RemoveAt(i); } } }

 

转载于:https://www.cnblogs.com/sl-Blog/p/5286225.html

最新回复(0)