Answers for "c# update list value"

0

update value in list c#

var result = list.Select(i => 
   { 
      if (i.Name == "height") i.Value = 30;
      return i; 
   }).ToList();
Posted by: Guest on October-25-2021
0

update value in list c#

list.Where(w => w.Name == "height").ToList().ForEach(s => s.Value = 30);
Posted by: Guest on October-25-2021

Python Answers by Framework

Browse Popular Code Answers by Language