I have a Queue<T> object that I have initialised to a capacity of 2, but obviously that is just the capacity and it keeps expanding as I add items. Is there already an object that automatically dequeues an item when the limit is reached, or is the best solution to create my own inherited class?
Share
I’ve knocked up a basic version of what I’m looking for, it’s not perfect but it’ll do the job until something better comes along.