With the stack and heap parts of memory, which one is managed by the .NET garbage collector?
Memory on the heap is managed by the garbage collector. Memory on the stack is deterministic and is returned to the pool when it goes out of scope.
Just the (managed) heap. The stack may have references to objects, but not the objects themselves.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With