Using LINQ to update/change values in collection code example
Example: Using LINQ to update/change values in collection
foreach (var obj in myObjectCollection)
{
obj.MyProperty = newValue;
}
foreach (var obj in myObjectCollection)
{
obj.MyProperty = newValue;
}