is it possible to substitute a foreach loop with a lambda expression in LINQ (.Select))?
foreach
.Select)
List l = {1, 2, 3, 4, 5}; forea
You can use the List.ForEach method.
l.ForEach(i => Console.WriteLine(i));