In LINQ, partition operators are used for separating the given sequence into two portions without sorting the elements and return one of the portions. The Standard Query Operators supports 4 different types of partition operators:
The Skip operator is used to skips the elements up to the specified position in the given sequence or collection. Or in other words, we can say that it skips the specified number of elements and return the remaining elements present in the given collection or sequence.
- It does not support query syntax in C# and VB.Net languages. But you can use the Skip method to query variable or you can wrap your query in brackets and then the call Skip method.
- It support method syntax in both C# and VB.Net languages.
- It present in both the Queryable and Enumerable class.
- It is implemented by using deferred execution.
- It will throw an ArgumentNullException if the source is null.
Original Sequence 1 is: c y p q l a New Sequence: l a Original Sequence 2 is: 202 2002 20002 200002 2000002 New Sequence: 20002 200002 2000002
Employee Id: 211 Employee Id: 212 Employee Id: 213 Employee Id: 214
- LINQ | Partition Operator | Take
- LINQ | Partition Operator | SkipWhile
- LINQ | Partition Operator | TakeWhile
- LINQ | Set Operator | Except
- LINQ | Set Operator | Union
- LINQ | Element Operator | First
- LINQ | Set Operator | Distinct
- LINQ | Quantifier Operator | Contains
- LINQ | Quantifier Operator | Any
- LINQ | Set Operator | Intersect
- LINQ | Filtering Operator | where
- LINQ | Quantifier Operator | All
- LINQ | Element Operator | Last
- LINQ | Grouping Operator | GroupBy
- LINQ | Projection Operator | SelectMany
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.