Maximum capacity collection in c#

前端 未结 9 2012
Happy的楠姐
Happy的楠姐 2020-12-09 04:27

In the .Net BCL is there a collection data structure similar to list that has a maximum capacity, say configured to 100 items, which when item 101 is added the original firs

9条回答
  •  暖寄归人
    2020-12-09 05:25

    There's not one available, but it should be easy to write a function to accomplish this with an array or collection.

提交回复
热议问题