Is array reference type / value type ?
Answers were Sorted based on User's Feedback
Answer / narayansahu
array in .net is of reference type.It implements various
interfaces.also the array you create is automatically
derived from system.array class
Is This Answer Correct ? | 86 Yes | 8 No |
Answer / shanta
Yes array is reference type because it uses address
Is This Answer Correct ? | 37 Yes | 2 No |
Answer / 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 |
Answer / zohaib brohi
option 1: int arrayone[6];
option 2 : int[] arraytwo = new int[6];
my question is are both options of arrays are refrence type or not? or which option is of which type ?
Is This Answer Correct ? | 10 Yes | 3 No |
Answer / albarhami
Array is a reference type because its getting stored in a
managed memory i.e a heap
Is This Answer Correct ? | 4 Yes | 0 No |
What are the collections in c#?
Define an abstract class?
What is a delegate in c#?
How do you convert byte array to hexadecimal string, and vice versa?
What is the namespace for datatable in c#?
What is gac? How to put assembly in gac?
How does c# achieve polymorphism?
What is polymorphism and its types in c#?
For a combobox and a listbox same datatable given as a datasource. Now problem is that whenever focus of listbox changes selected value of combobox also get change or vice versa. what to be done to avoid this. According to requirement we cannot make different datasouce.
how can your software identify which version of dot net framework install in client pc and install framework accordingly
What is the difference between field and variable in c#?
What is a reference type c#?