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 console application in c#?
What are escape sequences explain with example?
What is the function of .IsDescendent()?
What are the types of attributes in c#?
Explain 'structure padding'?
Can you declare struct members as protected?
How Is The Dll Hell Problem Solved In .net?
What is the value which is accepted by all data types ?
Hello! How to do this: "Create manifest utility intended for creating update content files. Application should take a set of files as input parameter and generate XML based manifest file as output one." I use C# and vs.net 2003. It's urgent! Help please, thanks. Mayana
How to implement an object pool in c#.net.
What are the various components in crystal reports?
What is the difference between gettype and typeof in c#?
Explain about finalize method?
Why is lazy loading?
What does void do in unity?