Monday, May 31, 2010

What is the difference between a value type and a reference type?

Value types are stored on the stack and reference types are stored on the heap. Value types are primitive data types such as int, char and float. Reference types are data types such as class, interface, event and delegate.

No comments:

Post a Comment