lamda表达式相关知识

lamda表达式写法

 

dt = datado.SelectDalMeath(sqlStr.ToString());
var x = (from r in dt.AsEnumerable()
select r["newcode"]).Distinct().ToList();
newcode = x.Aggregate(newcode, (current, t) => current + (t.ToString() + ","));

 string param = "city=" + city + "&projcodes=" + newcode;

你可能感兴趣的:(表达式)