I have a simple model:
Id Name Hot
----------- ---------------- -----------
1 Nicole False
2 Samanta False
3 Sabrina False
I have that list inside a ListOf<T>
I want to change the Hot
property to True
on all items.
My list have thousands of girls, so I am wondering if I can do it in a different way, avoiding doing the following:
foreach(var item in girls)
{
item.Hot = True;
}