Value types store data directly, whereas reference types store the address of the object.
Value Types
- int
- double
- bool
- char
- struct
Reference Types
- class
- string
- array
- interface
- delegate
Example
int x = 10;
string name = "CodeKnightHub";
Interview Tips
Struct is a value type.
Class is a reference type.