Say I have a list of all Projects, and that I group them by Category like this:
Projects
Category
var projectsByCat = from p in Projects
You Can find Even odd number without foreach loop
static void Main(string[] args) { List lstnum = new List { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; List lstresult = lstnum.FindAll(x => (x % 2) == 0); lstresult.ForEach(x => Console.WriteLine(x)); }