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.
This sample uses Take
to get only the first 3 elements of the array.
This sample uses Take
to get the first 3 orders from customers in Washington.
This sample uses Skip
to get all but the first 4 elements of the array.
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 «