List<string> 去重

网络来者發表於2024-08-23
List<string> originalList = new List<string> { "apple", "banana", "apple", "cherry" };
List<string> distinctList = originalList.Distinct().ToList();

相關文章