- In the Stack are saved the content of the Value Types variables and all the references to the instances of the Reference Types objects.
- In the Heap are saved the Reference Type objects with all their content, including Value Types properties and references to instances that composes that object.
Let's illustrate this (remember that strings are a Reference Type too):
It may look complicated but it's really simple when you understand it.

No comments:
Post a Comment