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 purpose of private constructor in c#?

551


what is IFormatable

580


What is file extension of webservices?

580


What is a hash table c#?

472


What is a .exe extension files? How is it similar to .dll extension files?

582






How can you set image source dynamically from c# application to ”test.png” file?

642


What is the default value of datetime in c#?

496


what optimizations does the c# compiler perform when you use the /optimize+ compiler option?

598


What is wrong with the sample program below?

535


Which is better interface or abstract class in c#?

445


Is c# static or dynamic?

504


If I return out of a try/finally in c#, does the code in the finally-clause run?

556


What is difference between array and arraylist c#?

462


What is the adv of using System.Text.StringBuilder over System.String?

541


What do you mean by winforms in c#?

507