Home > Software > .NET > C-Sharp
Interview Questions   Tutorials   Discussions   

C-Sharp - Is array reference type / value type ?

asked mar October 4, 2014 03:11 AM  

Is array reference type / value type ?


1 Answers

answered By siddhant   0  

Arrays are mechanisms that allow you to treat several items as a single collection. The Microsoft® .NET Common Language Runtime (CLR) supports single-dimensional arrays, multidimensional arrays, and jagged arrays (arrays of arrays). All array types are implicitly derived from System.Array, which itself is derived from System.Object. This means that all arrays are always reference types which are allocated on the managed heap, and your app's variable contains a reference to the array and not the array itself.

   add comment

Your answer

Join with account you already have



Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!