.NET Framework 不同
示例
var numbers = new[] {1, 1, 2, 2, 3, 3, 4, 4, 5, 5};var distinctNumbers = numbers.Distinct();
Console.WriteLine(string.Join(",", distinctNumbers));
//1,2,3,4,5
以上是 .NET Framework 不同 的全部内容, 来源链接: utcz.com/z/359387.html
var numbers = new[] {1, 1, 2, 2, 3, 3, 4, 4, 5, 5};var distinctNumbers = numbers.Distinct();
Console.WriteLine(string.Join(",", distinctNumbers));
//1,2,3,4,5
以上是 .NET Framework 不同 的全部内容, 来源链接: utcz.com/z/359387.html