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
Printable View
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
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
Thanks.
stephen