Take and Skip Partition Operator in LINQ

March 1, 2010 by: Sanket

Many times we have requirement, to fetch partial result set from collection like Arrays, DataTable.

To achieve the same we can use Take and Skip Partition Operator of LINQ.

Skip Partition Operator Reference: http://msdn.microsoft.com/en-us/library/bb358985.aspx

Take Partition Operator Reference: http://msdn.microsoft.com/en-us/library/bb503062.aspx

For this we will consider following example of Array Collection.

clip_image001

Above example is very simple to understand, we have applied Take and Skip Partition Operator to fetch partial result set.

If you have any queries, regarding the same, please lets me know.

Leave a Reply

*