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 can I get around scope problems in a try/catch?
Explain about ODP.net
What is string class in c#?
How are Windows programs different from normal C-programs?
Which is faster hashtable or dictionary?
What is an event in c#?
Why is static constructor called first?
What is Implementation inheritance and interface inheritance?
What are indexers in c# .net?
How many constructors can a class have c#?
When should you use generics?
What is fcl in c#?
if a method is marked as protected internal who can access it?
Can we maintain state in webservice?
How to generate strong name key file or which command is used to generated strong name key file?