C# Questions and Answers

What are value types and reference types?

Value types are stored in the Stack whereas reference types stored on heap.
Value types:

int, enum , byte, decimal, double, float, long

 

Reference Types:

string , class, interface, object