编程语言
首页 > 编程语言> > C# 集合类 Conlections

C# 集合类 Conlections

作者:互联网

 

 

集合类特有的遍历方式

    var numbers = new List<int> { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
            int[] num={ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
            numbers.ForEach( number => Console.Write(number + " "));
            Array.ForEach(num,(nu => Console.Write(nu + " ")));

 

标签:Console,Conlections,C#,number,Write,num,numbers,集合,nu
来源: https://www.cnblogs.com/cdaniu/p/15388605.html