LINQ is created to get a subset of a given enumeration or to create an enumeration with new types from a list.
, LINQ . , foreach,
foreach(var item in objects)
{
item.v1 += obj.dv1;
}
, , -
foreach(var item in object.Where(o => o.v1 % 2 == 0))
, ForEach(), , :
Erics.