.NET 中的对象引用有多大? [英] How big is an object reference in .NET?

查看:17
本文介绍了.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 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆