C# 集合去掉重复项

201 阅读1分钟

C# 集合去掉重复项

Distinct() 这个方法就可以满足需求

不懂的看链接

MSDN:Enumerable.Distinct 方法 (IEnumerable, IEqualityComparer)
msdn.microsoft.com/zh-cn/libra…