0 votes
in Dot Net by
Explain the differences between value type and reference type.

1 Answer

0 votes
by

Following are the main differences between value type and reference type:

  1. Value type contain variable while reference type doesn't contain value directly in its memory.
  2. In reference type, memory is allocated in managed heap and in value type memory allocated in stack.
  3. Reference type ex-class value type-struct, enumeration
...