update value in generic list c# code example

update value in generic list c#

1

1 Example

0
var dog = AllDogs.FirstOrDefault(d => d.Id == "2");
if (dog != null) { dog.Name = "some value"; }
by on

Other Code Examples