Is array reference type / value type ?

Answer Posted / sajan

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.

Is This Answer Correct ?    29 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How long will it take to learn c sharp?

685


What is xaml in c#?

697


Are arrays immutable c#?

693


Is object an int c#?

689


What does string format do?

639


What is default class in c#?

657


What is COM Interoperability?

744


What are the characteristics of c#?

661


Explain more on CLR

918


What are examples of desktop applications?

702


How do I create a multilanguage, single-file assembly?

690


Is c# still popular?

645


What is class and object c#?

651


What language do desktop applications use?

670


How long can loop recorders stay in?

863