I have a list from the .NET collection library and I want to delete one item. Unfortunately, I can not find it, comparing directly with another object.
I am afraid that using FindIndex and RemoveAt will lead to several crawls of the list.
I don't know how to use Enumerators to remove items, otherwise this might work.
RemoveAll does what I need, but does not stop after one element is detected.
Ideas?
source share