Click to See Complete Forum and Search --> : Are all arrays reference types?


sbayard
August 29th, 2001, 08:11 AM
Are arrays of value types cosidered reference types themselves?
e.g., considering:
int [] array = new int[10];
is 'array' a reference type or a value type?

Thanks.
stephen

Fox20
August 29th, 2001, 08:37 AM
Hi,

arrays are allways reference types, as every array is inherited from the class System.Array and objects are - as you surely know - allways reference types, too. I hope this helps.

Greetings,



Golo Haas
--


http://www.golohaas.de - the web the way you want it
http://www.guidetocsharp.de - make the internet intelligent

sbayard
August 29th, 2001, 09:19 AM
Thanks.

stephen