Rahul Chavan
Value Type and Reference Type Data type in C#?
By Rahul Chavan in ASP.NET on Apr 05 2016
  • Rahul Chavan
    Apr, 2016 5

    Value Type: A Value Type holds the data within its own memory allocation and a Reference Type contains a pointer to another memory location that holds the real data. Variables that store data are called value types. Value types are stored on stack. Predefined datatypes, structures, enumsReference Type: Reference Types are used by a reference which holds a reference (address) to the object but not the object itself. When a reference type variable is no longer used, it can be marked for garbage collection. Variables that store reference to actual data are called Reference types. Reference types stored on heap but contain the address on heap. class, interface, delegate, string, object, Array

    • 1
  • Mukesh Kumar
    Aug, 2017 29

    value type-int,float,double . reference type- string,object,big integer.

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS