Using Linq, how can I get a list of objects where their ordinal poistion is between 5 and 27.
There is an unknown number of MyObject, so somethings nothing could be found.
“allItems” is always in order so ordinal position is required.
Like this:
List<MyObject> allItems = GetAllItems();
List<MyObject> myRange = allItems.LINQSTATEMENTHERE(5 to 27th items);
Use a combination of Skip() and Take():