What are value types and reference types
A value type stores the values in its own memory location where as a reference type stores a pointer to another memory location where the memory is actually stored. value type variables are stored in a stack and reference type variables are stored in a heap.
examples of value type –
boolean, numeric data types like int, long etc., char, structures, enumerations
examples of reference type –
string, arrays, class, delegates