Instead of deleting the client instance that you just added, you are trying to delete a new client instance. You will need to get a link to the first client instance and delete it, for example:
Customer customer = new Customer(99, "H", "P");
collCustList.Add(customer);
collCustList.Remove(customer);
or, more briefly, if you know that you are removing the last client you can do:
collCustList.Remove(collCustList.Last());
, , Linq :
Customer customer = collCustList.Where(c => c.Number == 99 && c.Type == "H" ).FirstOrDefault();
if (customer != null)
{
collCustList.Remove(customer);
}
RemoveAll():
collCustList.RemoveAll(c => c.Number == 99 && c.Type == "H" );