How to check whether the current operating system is a 64-bit operating system in C#

1 Answer

0 votes
using System;

class Program
{
    static void Main() {
        string str = Environment.Is64BitOperatingSystem ? "yes" : "no";
        
        Console.WriteLine(str);
    }
}




/*
run:

yes

*/

 



answered Nov 18, 2023 by avibootz

Related questions

...