Table of Contents

Property Architecture

Namespace
MonoMod.Utils
Assembly
MonoMod.Utils.dll

Architecture

Gets the ArchitectureKind identifying the architecture of the current process.
public static ArchitectureKind Architecture { get; }

Property Value

ArchitectureKind

Remarks

Note that the architecture running here is not necessarily the architecture of the operating system. In many cases, an OS can run code that is not its own native architecture, for instance:
  • Windows running on x86_64 can natively run x86 code via its WOW64 subsystem.
  • Linux running on x86_64 can natively run x86 code in a similar manner to Windows.
  • MacOS running on Arm64 can run x86_64 code via its Rosetta emulation layer.
Generally, the most useful value is the process's architecture, so that's what this returns.