凡在存储引用类型(堆或堆栈)被定义值类型? [英] Where are value types defined in a reference type stored (heap or stack)?
本文介绍了凡在存储引用类型(堆或堆栈)被定义值类型?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
都存储在堆或堆栈?
这是一个引用类型定义的值类型- 如果保存在堆上,那么当存储在堆栈上的值类型?
- 如果存储在堆栈上,然后发生的事情堆里面应有尽有,在到底是值类型? 结束
解决方案
Are the value types defined inside a reference type stored on the heap or on the stack?
- If stored on the heap, then when are value types stored on the stack?
- If stored on the stack, then what goes inside the heap as everything ends at a value type in the end?
解决方案
Memory in .NET - what goes where by Jon Skeet
这篇关于凡在存储引用类型(堆或堆栈)被定义值类型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文