阅读背景:

在.NET中限制Queue 的大小?

来源:互联网 

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?I have a Queue<T> object that I have initialise




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: