Method syntax:
Enumerable.Range(1, 100).ToList().ForEach(Console.WriteLine);
Query syntax:
(from n in Enumerable.Range(1, 100) select n)
.ToList().ForEach(Console.WriteLine);
Method syntax:
Enumerable.Range(1, 100).ToList().ForEach(Console.WriteLine);
Query syntax:
(from n in Enumerable.Range(1, 100) select n)
.ToList().ForEach(Console.WriteLine);