📅  最后修改于: 2021-01-06 05:17:10             🧑  作者: Mango
在LINQ中,分区运算符用于将列表/集合项分为两部分,并返回列表项的一部分。这是LINQ中可用的不同类型的分区运算符。
通过使用这些运算符,我们可以将项目的列表/集合划分为两部分,并返回列表项目的一部分。
该表显示了与LINQ中的分区运算符有关的更多详细信息。
Operator | Description | Query-Syntax |
---|---|---|
TAKE | This operator is used to return the specified number of elements in the sequence. | Take |
TAKEWHILE | This operator is used to return the elements in the sequence which satisfy the specific condition. | Takewhile |
SKIP | This operator is used to skip the specified number of elements in a sequence and return the remaining elements. | Skip |
SKIPWHILE | This operator is used to skip the elements in a sequence based on the condition, which is defined as true. | Skipwhile |