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


Please Help Members By Posting Answers For Below Questions

Explain the difference between “as” and “is” operators used in c#?

502


What are examples of desktop applications?

508


Is list a collection c#?

544


What is cli in c#?

500


How to prevent the error while updating ui control from another thread?

506






Name the property of the textbox which cannot be changed at runtime?

528


Is lazy thread safe c#?

505


What is verbatim string?

506


Name the control which cannot be placed in mdi?

499


What is a type c#?

499


Can bool be null c#?

503


Is php better than c#?

500


I need code to connect ohter systems in the LAN and i want to display my website image over there and i want explain as a admin through phone. So i need code to access other system using C-Sharp. Any one please help me.Please give me the code. Advace thanks.

1466


How do I do implement a assert?

502


What is difference between c sharp and c#?

471