Sunday 9 August 2015

What is dfference between Reference type and value types

All the datatypes of .Net are classified into Value types and Reference types.
              Value types are the data types whose values directly stored in the variable within the stack memory area.                          
               Reference types are the data type whose values are stored in the Heap Memory area and his address is stored in the variable in stack . 
              Among the built in data types of .Net string and Object are reference type and all remaining data types are value types among the user defined data types structure and enumeration are value types and class, interface, delegate and arrays are reference types.          

No comments:

Post a Comment