Selecting a sequence of elements from the IList

Posted by KhanS on Stack Overflow See other posts from Stack Overflow or by KhanS
Published on 2010-05-13T07:45:53Z Indexed on 2010/05/13 7:54 UTC
Read the original article Hit count: 166

Filed under:
|
|

I have a IList. where the object PersonDetails consists of the persons name, address and phone number. The list consists of more than 1000 person details. I would like to display 50 PersonDetails per page. Is there a way to select only 50 elements from the list, and return them. For example.

myList.select(1,50)
myList.select(51, 100)

I am able to select only first 50 by using. myList.Take(50); The entire list is at the wcf service, and i would like to get only fifty elements at a time.

© Stack Overflow or respective owner

Related posts about c#

Related posts about list