Arrays

  • Thread starter Thread starter Manco
  • Start date Start date
M

Manco

I understand the declaring an array:

int[] arr = new int[5]{1,2,3,4,5};

this object will be derived from System.Array, yet when I examine the MSIL,
it's not quite clear, I don't see an extends attribute.
 
this object will be derived from System.Array, yet when I examine the MSIL,
it's not quite clear, I don't see an extends attribute.

That's because there's no type declaration of the array type in the
assembly. Array types are constructed at runtime.



Mattias
 
Back
Top