What is difference between value type and reference type?

Value Type

  • Stores the data.
  • The value of value types is stored on the managed stack.
  • One variable can have just one value.
  • They are lighter objects.

Reference Type

  • Stores the reference to the data.
  • A reference type is allocated on the heap.
  • several variables can reference the same data.
  • They are heavier objects.