Linq中的常用方法

时间:2024-03-21 16:07:56

System.Linq

System.Linq.Enumerable  类

Range

Repeat

Reverse

Select

Where

Sum

Zip

Aggregate

Count

FirstOrDefault

Join

Max

Min

//Returns the only element of a sequence, or a default value if the sequence is empty; this method throws an exception if there is more than one element in the sequence

SingleOrDefault

相关文章