Limit the size of List(Of T) - VB.NET

后端 未结 5 1845
無奈伤痛
無奈伤痛 2021-01-18 06:46

I am trying to limit the size of my generic list so that after it contains a certain amount of values, it won\'t add any more.

I am trying to do this using the Capac

5条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-18 06:54

    You should implement your own list/collection if you need to restrict the maximum quantity of item in it.

提交回复
热议问题