Possible Duplicate:
sizeof(int) on x64?
The size of IntPtr changes from 4 to 8 when compiled for x64 versus x86.
Does the size of int also change, or is it still Int32?
This question is particularly important when using pinvoke and dealing with interop calls. Do all “int” types need to be explicitly changed to be declared as Int32?
No. “int” in C# is always defined as an alias for Int32 as part of the C# language specification, which is always the same size. Using “int” or “Int32” will produce exactly the same IL.