How can I get every nth item from a List?

return list.Where((x, i) => i % nStep == 0);

Leave a Comment