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);
        }
原文地址:https://www.cnblogs.com/zxbzl/p/3573545.html