A number of people have asked me, in the wake of my earlier posting about value types being on the stack, why it is that value types go on the stack but reference types do not.
The short answer is "because they can". And since the stack is cheap, we do put them on the stack when possible.
The long answer is. long.
I'll need to give a high-level description of the memory management strategies that we call "stack" and "heap". He...Full Article.
No comments:
Post a Comment
Post your comments here: