What is the size of an object reference in .NET? Does it vary between x86, x64, and/or AnyCPU compilation?
If it makes a difference, I'm interested in C#.
What is the size of an object reference in .NET? Does it vary between x86, x64, and/or AnyCPU compilation?
If it makes a difference, I'm interested in C#.
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.
object reference and not object. The OP marked this answer as correct.