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);
        }

 

posted @ 2014-02-28 14:23  银河系上的地球  阅读(371)  评论(0编辑  收藏  举报