You can skip the results you want: with the LINQ - SKIP Operator

By [)ia6l0 iii

The LinQ SKIP operator lets you skip the results you want, and take the rest. See below for an code sample.


string[] breakfastItems = { "egg", "yolk", "omlette", "pizaa", "bread" };  
var letUsTryBreakfast  = breakfastItems.Skip(3);        

The above code sample would select the last two items from the array.



Related FAQs

The LinQ Take operator lets you take only the results you want. See below for an code sample.
You can skip the results you want: with the LINQ - SKIP Operator  (776 Views)