List<Cart> cartd=cartd.Where(p => (p.Id= "123").Length > -1).ToList();把Id的值都赋值为123还有循环的方法就不写了
原标题:List指定字段赋特定值(非循环) asp.net
关键词:ASP.NET