Element order in BlockingCollection<>
问题 I have a Download Queue implemented with BlockingCollection<> . Now I want to prioritize some Download once in a while. I thought it might be great to move some elements 'up' the Collection, like in a list, but there is no method like Remove()/AddFirst() or Move(). What's the preferred way of arranging items in a BlockingCollection<> ? 回答1: BlockingCollection<T> works by wrapping an internal IProducerConsumerCollection<T>. The default is to use a ConcurrentQueue<T> internally, but you can