Stack vs. Heap in .NET [closed]

2019-01-22 09:07发布

In your actual programming experience, how did this knowledge of STACK and HEAP actually rescue you in real life? Any story from the trenches? Or is this concept good for filling up programming books and good for theory?

7条回答
SAY GOODBYE
2楼-- · 2019-01-22 09:30

The important distinction is between reference types and value types. It's not true that "value types go on the stack, reference types go on the heap". Jon Skeet has written about this and so has Eric Lippert.

查看更多
登录 后发表回答