Difference between value type and reference type

Total Post:9

Points:45
C# 
C#
 426  View(s)
Ratings:
Rate this:
  1. Post:9

    Points:45
    Difference between value type and reference type

    Value type

    It store within stack memory.

    The example of reference type are Structure,all primitive data type except string and enum.

    Reference type

    reference type store within heap memory.

    Class, string, array, delegate, interface is the example of reference type.

Answer