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 |
Why do we need nullable types in c#?
If dll and exe files are same it means you can deploy both the files in gac?
Explain the difference between the system.array.copyto() and system.array.clone()?
What does Dispose method do with the connection object?
What is yield keyword?
hi , how could i analyse a text the user added on a site to look for some words like "car" "shouffere" .. and then i can use that information in addition to other information to make a decision about the adds im going to to show on the site.
What are value types in c#?
Explain the various types of classes used in c#?
Explain the mechanism of VB.NET/C# achieve polymorphism?
Can we inherit a class with private constructor in c#?
What is generic types in c#?
Can delegates be used as callbacks?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)