创建类似的数组时
string[] list = new string[5];
有一个名为的变量IsFixedSize.那么是否可以创建一个不固定大小的数组?我知道的唯一方法是使用List<string>.我很困惑因为我认为数组是固定大小的,所以为什么会有list.IsFixedSize?
IsFixedSize
List<string>
list.IsFixedSize
c# arrays list fixed-size-types
arrays ×1
c# ×1
fixed-size-types ×1
list ×1