A common platform for concurrent bags, stacks and queues in .NET
August 18, 2015 Leave a comment
We’ve looked at the available concurrent collections in .NET before:
3 of these objects implement the same interface. Can you guess which three are similar in some sense? Stacks, bags and queues differ from dictionaries in that elements in those collections cannot be retrieved by an index of any sort. You can take/pop/dequeue the elements one by one but you cannot get to element #3 without first removing all elements before that.