Skip to content

Instantly share code, notes, and snippets.

@fatbigbright
Created April 18, 2018 13:13
Show Gist options
  • Save fatbigbright/0d52f558b9a0e1de64db70728bf9396b to your computer and use it in GitHub Desktop.
Save fatbigbright/0d52f558b9a0e1de64db70728bf9396b to your computer and use it in GitHub Desktop.
Take a look at Environment
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CLRviaCsharp_00
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Is64BitOperationSystem: {0}", Environment.Is64BitOperatingSystem ? "在64位Windows上运行" : "不在64位Windows上运行");
Console.WriteLine("Is64BitProcess: {0}", Environment.Is64BitProcess ? "在64位地址空间中运行" : "不在64位地址空间中运行");
Console.ReadKey();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment