Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Mohamed Besher El Said 39 posts 258 karma points
    Sep 23, 2014 @ 14:41
    Mohamed Besher  El Said
    0

    List return only last 4 items

    this my code which select all items

     

    I want to creat list which return 4 items or any number that i want to insert .not all items 

  • Alex Skrypnyk 6182 posts 24284 karma points MVP 9x admin c-trib
    Sep 23, 2014 @ 15:05
    Alex Skrypnyk
    101

    Hi Mohamed,

    Try to use .Take(int amountOfItems) method.

    http://msdn.microsoft.com/en-us/library/vstudio/bb503062(v=vs.100).aspx

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies