C# 3.0 - LINQ to Objects

言語統合クエリ
最も大きな拡張

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Program
{
    class Program
    {
        static void Main(string[] args)
        {
            var persons = new[]
                        {
                            new { Age = 22, Name = "Akira"  },
                            new { Age = 38, Name = "Bob"    },
                            new { Age = 13, Name = "Millia" }
                        };

            // 18歳以上の人の名前を抽出
            var query = from person in persons where person.Age >= 18 select person.Name;

            foreach (var Name in query) {
                Console.WriteLine(Name);
            }
        }
    }
}


・・・・・・ふむ