I have a LinkedList where Entry has a member called id. I want to remove an entry from the list where id matches the search value. What is the best way to do this? I do not want to use Remove (), because Entry.Equals will compare other members, and I want only a match with the identifier. I hope to do something like this:
entries.RemoveWhereTrue(e => e.id == searchId);
edit: Can someone reopen this question for me? This is NOT a duplicate - the question, which should be duplicate, concerns the List class. List.RemoveAll will not work - this is part of the List class.
TimK
source share