批量替换List中某个属性的值

data.FindAll(o => o.item.ToUpper() == "TRUE").ForEach(c => c.item= "1");

你可能感兴趣的:(C#,c#)