
int[] arr={233,2,45,45,76,8,9,3,56}; //聚合函数 var result = arr.Max(); Console.WriteLine("arr的最大值"+result);//求出最大值 Console.WriteLine("arr的最小值"+arr.Min());//求出最小值 Console.WriteLine("arr的平均值"+arr.Average());//求出平均值 Console.WriteLine("arr的数组个数"+arr.Count());//求出数组长度 Console.WriteLine("arr的和"+arr.Sum());

输出结果
排序类 thenBy

这是第一次排序

然后再按照从自身从小到大排序
分区类 Take, Skip,TakeWhile,Skipwhile

调过两个,去两个

跳过第二个取全部

跳过大于50 的数字