I'm using a blocking collection as I need this list to be thread safe:
Orders = new BlockingCollection<Order>();
I'm trying to remove a specific order, lets say I want to remove order.ID 1
if it was a normal collection would be something like
orders.Remove(orders.Where(o => o.ID == 1).First());
I've read about those collections there is Take()
and TryTake()
but none of them allows me to specify which one I want to remove.