Saturday, 27 April 2013

What are Value types and Reference types? | ASP.Net interview questions

Value types directly contain their data which are either allocated on the stack or allocated in-line in a  structure.
Reference types store a reference to the value's memory address, and are allocated on the heap. Reference types can be self-describing types, pointer types, or interface types.

No comments: