is there in C# a method for List like resize in c++ for vector

后端 未结 7 1386
無奈伤痛
無奈伤痛 2021-01-03 18:14

When I use resize(int newsize) in C++ for vector, it means that the size of this vector are set to newsize

7条回答
  •  无人及你
    2021-01-03 19:01

    A list doesn't have a finite size.

    Is there a reason why the size matters to you?

    Perhaps an array or a dictionary is closer to your requirements

提交回复
热议问题