有多大是.NET对象的引用? [英] How big is an object reference in .NET?
本文介绍了有多大是.NET对象的引用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
什么是.NET对象引用的大小?它的x86,x64和/或值为anycpu编译之间有什么不同?
What is the size of an object reference in .NET? Does it vary between x86, x64, and/or AnyCPU compilation?
如果它的确与众不同,我在C#中的个人兴趣。
If it makes a difference, I'm personally interested in C#.
推荐答案
引用本身基本上是一个指针。 32位在32位操作系统,64位在64位操作系统。
The reference itself is basically a pointer. 32 bits on a 32 bit OS, 64 bits on a 64 bit OS.
这真实引用的对象的大小是比较复杂的。
The size of the object that's referenced is more complicated.
这篇关于有多大是.NET对象的引用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文