Memory layout of a .NET array

前端 未结 4 1233
醉梦人生
醉梦人生 2020-12-02 18:43

What is the memory layout of a .NET array?

Take for instance this array:

Int32[] x = new Int32[10];

I understand that the bulk of t

4条回答
  •  一生所求
    2020-12-02 18:52

    An array object would have to store how many dimensions it has and the length of each dimension. So there is at least one more data element to add to your model

提交回复
热议问题