If I have 10 List<Car>. Is there a way I can ‘dispose’ CarInstance1 so it is removed from all the lists without having to search them one by one and do a Remove()?
Thank you!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
no, each list stores a pointer/reference to that item. each list will need that reference to be removed.