Using LINQ to Update A Property in a List of Entities
Here are two solutions that I found that worked for me.
result = result.Where(x => (x.property1 = 100) == 100).ToList();
or
result = result.Select(c => { c.property1 = 100; return c; }).ToList();
Like this:
var result = GetMyIEnumerable()
.ToList();
result.ForEach(x => x.property1 = 100);