Check if current process is a 64-bit process in CSharp

Description

The following code shows how to check if current process is a 64-bit process.

Example


/*  w ww .j  a v a2s. co m*/
using System;

public class Example
{

   public static void Main()
   {
      Console.WriteLine(Environment.Is64BitProcess);  
   }
}

The code above generates the following result.





















Home »
  C# Tutorial »
    Development »




Console
Encoding
Environment
Random