Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. private void GetItemsPrice(IEnumerable<Item> items, int customerNumber)
  2. {
  3. var a = items.Skip(2).Take(5);
  4. }
  5.  
  6. {System.Linq.Enumerable.TakeIterator<int>}
  7. count: 0
  8. source: null
  9.  
  10. int[] items = { 1, 2, 3, 4, 5, 6, 7 };
  11. var a = items.Skip(2).Take(3);
  12.  
  13. a.ToList()
  14.  
  15. Count = 3
  16. [0]: 3
  17. [1]: 4
  18. [2]: 5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement