In the following scenario, I am querying a List object and for the matching predicate I want to update some values:
var updatedList = MyList
.Where (c => c.listItem1 != "someValue")
.Update (m => {m.someProperty = false;});
The only issue is there is no Update extension method. How to go about this?
My objective is update only those items in my list which match the condition leaving the other items intact.
1 Answer