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=="xx ...
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";
}
}
)