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
How do you declare an arraylist?
Describe how a .net application is compiled and executed
What is a private method in c#?
what is the meaning of Object lifetime in OOPS
Is c# pass by reference?
What is datacontract in c#?
Why to use lock statement in c#?
What is a dll in c#?
What are delegates and why are they required?
Why can't we use a static class instead of singleton?
What is a satellite assembly in c#?
What is asp net c# corner?
What is the difference between abstract and abstraction?
Can a string be null c#?
What are tuples c#?