Check if the current operating system is a 64-bit operating system in CSharp
Description
The following code shows how to check if the current operating system is a 64-bit operating system.
Example
using System;/* w w w . ja v a2 s. c o m*/
public class Example
{
public static void Main()
{
Console.WriteLine(Environment.Is64BitOperatingSystem);
}
}
The code above generates the following result.