PROPERTY
RuntimeInformation.OSArchitecture
Reports the operating system architecture as an Architecture value. A process can run with another architecture; check the runtime, native dependencies and intended image separately.
Formal Syntax & Structure
csharp syntaxcsharp
RuntimeInformation.OSArchitectureWorking Example
Example Snippetcsharp
using System;using System.Collections.Generic;using System.Runtime.InteropServices;Console.WriteLine(RuntimeInformation.OSArchitecture); // Environment-dependent