SyntaxFix
Write A Post
Hire A Developer
Questions
cleaner way to do this is using foreach
foreach(var item in li.Where(w => w.name =="di")) { item.age=10; }