记录一下 foreach循环赋值 简便写法
var cId =“10001”;
string name=“张三”;
List<Model1> truck=new List<Model1>();
truck.Add(new List<Model1>(){"cId"="1"});
truck.Add(new List<Model1>(){"cId"="2"});
truck.ForEach(m => m.cId = cId);
truck.ForEach(m => { m.cId = cId; m.name= name; });