public void pickedUp() { Console.WriteLine("\nEnter Order Id: "); var idDelete = Console.ReadLine(); int id; bool sucess = Int32.TryParse(idDelete, out id); if ((sucess) & (id <= ID.orderMax()) & (id >= 0)) { Console.WriteLine(); FoodOrder toRemove = null; foreach (var f in Orders) { toRemove = f; } Orders.Remove(toRemove); } }