Table of Contents

Method CreateCurrentArchitecture

Namespace
MonoMod.Core.Platforms
Assembly
MonoMod.Core.dll

CreateCurrentArchitecture(ISystem)

Creates an IArchitecture implementation using the provided ISystem according to the architecture detected by Architecture.
public static IArchitecture CreateCurrentArchitecture(ISystem system)

Parameters

system ISystem
The ISystem implementation for the architecture to use.

Returns

IArchitecture
An IArchitecture implementation for the current architecture.

Remarks

The architecture may utilize the values of PlatformDetection to make decisions about its behaviour. As such, the provided implementations must be for the current process.

Exceptions

NotImplementedException
Thrown if Architecture returns an architecture which will be supported in the future, but is not currently.
PlatformNotSupportedException
Thrown if Architecture returns an unsupported architecture kind.