Thursday, 2 January 2014

Difference between Value Types and Reference Types

Difference between Value Types and Reference Types

Value Types:
bool, byte, chat, decimal, double, enum , float, int, long, sbyte, short, strut, uint,
ulong, ushort. Value types are stored in the Stack
Reference Types:
class, delegate, interface, object, string. Reference types are stored in the Heap

0 comments:

Post a Comment