Check out example codes for "c# linq to select even numbers". It will help you in understanding the concepts better.

Code Example 1

var oddCategories  = projectsByCat.ToList().Where((c,i) => i % 2 != 0);
var evenCategories = projectsByCat.ToList().Where((c,i) => i % 2 == 0);

Learn ReactJs, React Native from akashmittal.com