class Student { public string Id {get;set;} public string Name {get;set;} } List<Student> list = new List<Student>() list.add(new Student{Id=1,Name="名字1"}); list.add(new Student{Id=2,Name="名字2"}); list.add(new Student{Id=3,Name="名字3"}); list.Select(a => { a.Name=a.ID+"_"+a.Name; return a; }).ToList();
标签:Name,List,list,Student,new,net,Id,属性 From: https://www.cnblogs.com/yuezc97/p/16745628.html