Good Morning, I have a list of person
private List<Person> person = new List<Person>();
Person is a class
public class Person
{
    public double trackID; 
    int Age;
}
I would like remove the item that have a particular ID (ID2 in the code). How can i do?
i try this but i have some error exceptions:
foreach (Person p in person)
{
   if (p.ID == ID2)
   {
     person.Remove(p);
   }
}
thank you in advance for your cooperation
 
    