10/12/15 16:25:40 8EBtaYHr0
// >>21
using System;
using System.Collections.Generic;
using System.Linq;
class Test {
public static void Main(string[] args) {
var lst = new List<int>(new int[]{1,2,3,4,5});
lst.Where(i => {
Console.WriteLine("Where:" + i.ToString());
return i % 2 == 0;
})
.Select(i => {
Console.WriteLine("Select:" + i.ToString());
return i + 1;})
.ToList()
.ForEach(i => Console.WriteLine(i.ToString()));
}
}