How can you determine, at runtime, if your application is running in the 64-bit version of .Net framework 4.0?

Question:How can you determine, at runtime, if your application is running in the 64-bit version of .Net framework 4.0?

1.Check IntPtr.Size property for a value of 8.

2.Call the Environment.GetEnvironmentVariable method and pass in the string "Platform" as an argument. Check for a return value of "x64".

3.Call the WOW64 emulator method Isx64() and check the boolean return value.<br>

4.None of the above


Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!