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);
Linq打印
原文:http://www.cnblogs.com/chucklu/p/4736978.html