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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top