I have found the following information on MSDN
"In the LLP64 data model, only pointers expand to 64 bits; all other basic data types (integer and long) remain 32 bits in length.
The .NET CLR for 64-bit platforms uses the same LLP64 abstract data model."
This implies that the size of long on 32 as well as 64 bit systems should be 32 bits. But when I use a long in my application, I find the underlying type to be System.Int64 and sizeof(long) returns the value of 8 implying 64 bits. I have observed this behavior
on 32 bit as well as 64 bit systems. This is contradictory to the information on MSDN.
Please let me know what am I missing here.
View Complete Post