Slide 24
Slide 24 text
ϥϜμࣜɺLINQ to Objects
var list=new[]{0,1,2,3,4,5,6,7,8,9}// 0ʙ9Λ
.Where(x => x % 2 == 0) // ۮͷΈ
.OrderByDescending(x => x) // ߱ॱ
.Select(x => x * 10); // 10ഒ
// ݁Ռ: 80 60 40 20 0
// ↑ͷ݁Ռͱ [40, 20, 10] ͱͷੵू߹Λऔಘ͢Δ
var ret = list.Intersect(new[]{40,20,10});
// ݁Ռ: 40 20
֎෦ϥΠϒϥϦʹཔΒͣͰ͖Δͷ͕ڧ͍ʂ