Might be simple but am not sure how to implement without foreach
public class Car
{
public string Model { get; set; }
public DateTime? LastModified { get; set; }
}
Am having List with 1000 Count
Now i need to set LastModified to Null for all the 1000 Records.
foreach(var item in Car)
{
item.LastModified = null;
}
Without Foreach is there any other better way i can implement ?
Thanks