Skip to content

Latest commit

 

History

History
36 lines (20 loc) · 1.2 KB

partitions.md

File metadata and controls

36 lines (20 loc) · 1.2 KB

LINQ - Partition Operators

The methods Take, Skip, TakeWhile and SkipWhile partition an output sequence. You use these to limit the portion of an input sequence transferred to the output sequence.

Take elements

This sample uses Take to get only the first 3 elements of the array.

Nested Take partitions

This sample uses Take to get the first 3 orders from customers in Washington.

Skip elements

This sample uses Skip to get all but the first 4 elements of the array.

Nested skip partitions

This sample uses Take to get all but the first 2 orders from customers in Washington.

Next: Partitions with conditions » Previous: Restrictions with indexes and conditions «

Home