c# - ToList().ForEach in Linq - Stack Overflow

PHOTO EMBED

Tue Mar 22 2022 01:40:41 GMT+0000 (Coordinated Universal Time)

Saved by @javicinhio

employees.ToList().Foreach(u=> { u.SomeProperty = null; u.OtherProperty = null; });
content_copyCOPY

https://stackoverflow.com/questions/7816781/tolist-foreach-in-linq