WHAT ARE VALUE TYPES AND REFERENCE TYPES?

Sumit Kesarwani

Total Post:782

Points:3910
Posted by  Sumit Kesarwani
C# 
C#
 1226  View(s)
Ratings:
Rate this:
  1. Sumit Kesarwani

    Post:782

    Points:3910
    What are value types and reference types?

    Value types are stored in the Stack.

    Examples: bool, byte, chat, decimal, double, enum , float, int, long, sbyte, short, strut, uint, ulong, ushort.

    Reference types are stored in the Heap.

    Examples: class, delegate, interface, object, string.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!