日期:2014-05-17 浏览次数:20596 次
list.ForEach(model=>model.XXX=SomeMethod(model.XXX)); or list=list.Select(model=>new Model{id=model.id,XXX=SomeMethod(model.XXX)}).ToList(); ------解决方案--------------------list.ForEach(x => x.xxx = SomeMethod(x.XXX));