Answers for "linq to update a list"

0

linq to update a list

customers.Where(c => c.IsValid).Select(c => { c.CreditLimit = 1000; return c; }).ToList();
Posted by: Guest on March-29-2020
-1

linq to update a list

var newCustomers = customers.Where(c => c.IsValid).Select(c => { c.CreditLimit = 1000; return c; });
Posted by: Guest on March-29-2020

Browse Popular Code Answers by Language