<分区>
Possible Duplicate:
Remove duplicates from array
如何从 C# 中的数组中获取不同的值
标签 c#
最佳答案
您可以使用 .Distinct()
扩展方法。
var collectionWithDistinctElements = oldArray.Distinct().ToArray();
关于c# - 如何从 C# 中的数组中获取不同的值?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8816001/