首页 > 代码库 > LinQ In Action 学习第三章

LinQ In Action 学习第三章

本章开始前先回顾一个小例子,复习一下第二章所讲内容

  var pc = Process.GetProcesses()
                .Where(p => p.WorkingSet64 >= 20 * 1024 * 1024) // lamador expression
                .OrderByDescending(p => p.WorkingSet64)// extension method
                .Select(p => new { ID = p.Id, Name = p.ProcessName, Memory = p.WorkingSet64 });// Anymorous type and  object initiallizer
            Console.WriteLine(pc);
            Console.Read();

开始第三章:

1. Lamador Expression

2. Lamador Operator

3. Lazy Executation

4. Expression tree

LinQ In Action 学习第三章