C#LINQ常用语法大全

目录

 取值

   First,FirstOrDefault
   Last,LastOrDefault
   Single,SingleOrDefault
   ElementAt,ElementAtOrDefault
   Skip,SkipWhile
   Take,TakeWhile
   DefaultIfEmpty
   Where

 检查

   All
   Any
   Contains
   OfType
   SequenceEqual
   Count,LongCount

 计算

   Max
   Min
   Average
   Sum
   Aggregate

 转换

   ToList
   ToArray
   ToDictionary
   AsEnumerable
   Cast
   Reverse
   Distinct
   Select,SelectMany

 排序

   OrderBy,OrderByDescending
   ThenBy,ThenByDescending

 组合

 创建

备注

你可能感兴趣的:(C#,c#,linq,microsoft,dll,unity)