All blog posts with the tag "net-framework".
Is64BitOperatingSystem and Is64BitProcess in .NET 4.0Published:2 min read
The Environment class in .NET 4.0 contains two static properties, Is64BitOperatingSystem and Is64BitProcess, for checking bitness. The code for these properties is quite elegant and simple to follow, taking advantage of the fact that there are two versions of mscorlib.dll assembly: one for x86 and one for x64. It is also possible to check if the process is running under WOW64 (Windows-on-Windows 64-bit).