I have the following list definition:
class ListItem { public int accountNumber { get; set; } public Guid locationGuid { get; set; } public DateTime createdon { get; set; } } class Program { static void Main(string[] args) { List<ListItem> entitiesList = new List<ListItem>(); // Some code to fill the entitiesList } }
There are duplicates in the accountNumbers of the List object. I want to find a duplicate accountNumbers, perform an action on locationGuids with a createdon date that is not the most recent duplicate date created. How can I manipulate the list to only duplicate accountNumber, the newly created locationGuid and (older) locationGuids?
source share