C# 整形数组排序
static void Main(string[] args) { int[] numbers = new int[] { 3, 2, 21, 3, 3, 23, 4, 43, 23, 23 }; Array.Sort(numbers); Array.ForEach<int>(numbers,Msg);// (i) => Console.WriteLine(i)); Console.ReadKey(); } static void Msg(int i) { Console.WriteLine(i); }