c# list修改某一个属性的值
时间:2019-03-14 16:20:05
收藏:0
阅读:911
public class info()
{
public string name{get;set;}
public string age{get;set;}
}
list<info> list = new list<info>();
list.ForEach(i=>
{
if(i.name=="xxx")
{
i.name="xxx";
}
}
)
原文:https://www.cnblogs.com/Dcz1996/p/10530425.html
评论(0)