LINQ | Partition Operator | Skip
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
My Personal Notes arrow_drop_up
Please Login to comment...