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

What is the difference between throw and throw ex?

467


What is arraylist c#?

462


Can we set image Source dynamically using C# in WPF application?

629


What is the main purpose of linq?

477


What is the difference between struct and class in c#?

474






Why do we need structs in c#?

448


What is the difference between dictionary and hashtable in c#?

464


What are async and await?

535


Can we inherit a private class in c#?

460


Can you instantiate a struct without using a new operator in c#?

530


Explain get and set accessor properties?

489


What is callback in c#?

477


Define a strong name in .net?

540


What is multiple interface in c#?

515


Which is faster iqueryable or ienumerable?

563