I have a list of of stringsDouble called Messages.
The code for the class is below:
public class stringsDouble
{
public string Sender{get;set;}
public string message{get;Set;}
public DateTime time{get;Set;}
}
every time my app receives a new message. I update the List and i store the time of the latest message sent for the user sending that message.
what i want to do is, every 5 minutes the app should go through the list.
and for every item in the list it should get the time property and get
the current system time , and check to see if the difference is more than 30 minutes. If it is, it should delete that item from the list.
How can i accomplish this?