Answers for "c# modify value of list"

C#
1

c# edit element in list

var index = list.FindIndex(c => c.Number == someTextBox.Text);
list[index] = new SomeClass(...);
Posted by: Guest on March-23-2020
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

C# Answers by Framework

Browse Popular Code Answers by Language