what are value types and reference types? where they are stored?
Answer Posted / poornima
Value Types:
All numeric data types
Boolean, Char, and Date
All structures, even if their members are reference types
Enumerations, since their underlying type is always SByte,
Short, Integer, Long, Byte, UShort, UInteger, or ULong
Reference Types:
String
All arrays, even if their elements are value types
Class types, such as Form
Delegates
1..In value type data stored on stack memory.
2..In reference type data stored on heap memory.
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is the use of partial methods?
How can I access the registry from c# code?
Are cao stateful in nature?
What is the difference between dictionary and hashtable in c#?
What is the advantage of generics in c#?
Can you inherit from multiple classes in c#?
What is the difference between mobile application and desktop application?
What is assembly manifest?
What's the difference between system.string and system.text.stringbuilder classes?
What is difference between c sharp and c#?
What is object array in c#?
What is the difference between list and arraylist in c#?
what are some characteristics of an array?
For read-only operation which property you have to designated?
What is console used for?