为什么派生自 System.Object(通过 System.ValueType)的 System.Int32 是值类型,而 System.Object 是引用类型?
最佳答案
因为 System.ValueType
允许我们通过覆盖 System.Object 中的某些虚拟成员来使用装箱/拆箱。
关于.net - 为什么 Int32 是值类型?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3753542/