Skip to content

Platform Enum

Generic platform enum.

C#
[Flags]
public enum Platform

Bit applied to all OSes (Unknown, Windows, MacOS, …).

C#
OS = 1

On demand 64-bit platform bit.

C#
Bits64 = 2

Applied to all NT and NT-oid platforms (Windows).

C#
NT = 4

Applied to all Unix and Unix-oid platforms (macOS, Linux, …).

C#
Unix = 8

On demand ARM platform bit.

C#
ARM = 65536

On demand Wine bit. DON’T RELY ON THIS.

C#
Wine = 131072

Unknown OS.

C#
Unknown = 17

Windows, using the NT kernel.

C#
Windows = 37

macOS, using the Darwin kernel.

C#
MacOS = 73

Linux.

C#
Linux = 137

Android, using the Linux kernel.

C#
Android = 393

iOS, sharing components with macOS.

C#
iOS = 585