Created
April 18, 2018 13:13
-
-
Save fatbigbright/0d52f558b9a0e1de64db70728bf9396b to your computer and use it in GitHub Desktop.
Take a look at Environment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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