int[] arry = { 1, 3, 565, 76, 4, 32, 2 };
//linq写法
var res =
from i in arry
select i;
//lambda写法
var res = arry.Select(i => i);
//Linq
var res =
from s in arry
where s%2 == 0
select s;
//Lambda
var res = arry.Where(s => s % 2 == 0);

05-23 20:18