Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to know my processor is 32 or 64 bits in C#?

Tags:

c#

How to know my processor is 32 or 64 bits in C#?

like image 844
Embedd_0913 Avatar asked Mar 27 '09 10:03

Embedd_0913


People also ask

How do I know if my CPU is 64-bit?

Look for the System Type option under the Item column on the right side of System Information. In the Value column, the associated value tells you which type of CPU the computer has in it. If the System Type value includes "x86" in it, the CPU is 32-bit. If the System Type value includes "x64" in it, the CPU is 64-bit.

Is my CPU x86 or x64?

Open the Settings app. Navigate to System > About. On the right, check out the System type value. It shows either a x86-based processor (32-bit), x64-based processor (64-bit), or ARM-based processor depending on the hardware you have.

How do I tell if I have 32-bit or 64-bit C?

'uname -a' command will make sure us about 32/64 bit architecture.


1 Answers

For anyone using .NET 4.0 or newer, there is a built-in property System.Environment.Is64BitOperatingSystem to give you this information.

like image 116
Peter Ritchie Avatar answered Nov 09 '22 10:11

Peter Ritchie