This must be simple but I failed to understand why this is not allowed:
var testList = new List<int> { 2, 3, 400, 304, 50, 41 };
testList.Select(x => Console.WriteLine(x));
But this is fine:
testList.Select(x => x * 2);
Where do I misunderstand LINQ to cause this confusion?