Sunday, May 26, 2013

Why do we need both Value and reference types?

Hi,


Types are classes, be it a value or reference type. Why two behaviors(value vs reference) were created? Answer I think is based on memory size. value type have smaller memory print so keep them close in stack and bigger object are reference type so work with references. Is this correct?


What is it that makes a class value type?


Thanks


Najam


No comments:

Post a Comment