I would like to have a concurrent collection which supports a blocking thread-safe Take
operation, while the actual item taken is an item that satisfies a condition.
Something like:
private TheBlockingCollection<MyClass> _myCollection;
MyClass myItem = _myCollection.TakeItemWhere(item => item.Type.equals(something));
The final goal would be to take the item with the highest property value that currently exists in the collection. e.g. - Max
Is there such a built in collection?
If not, what would be the better alternative?