I know that IntPtr.Size can check 64bit or 32 bit. (8 || 4 bytes)
question :
is IntPtr.Size regarding to
- the operating system platform
or
- .net compiled version ( i can compile to 32 or to 64 )
can you please check and correct this table ?
compiled to | running OS | IntPtr.Size
______________________________________
64 32 wont run
64 64 8
32 32 4
32 64 4
The table is correct, as long as your “running on” column refers to the bitness of the OS, not the bitness of the CPU.
Keep in mind that there are actually three options: 32, 64 and AnyCPU: