Table of Contents

Method CreateCurrentRuntime

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

CreateCurrentRuntime(ISystem, IArchitecture)

Creates an IRuntime implementation using the provided ISystem and IArchitecture according to the runtime detected by Runtime.
public static IRuntime CreateCurrentRuntime(ISystem system, IArchitecture arch)

Parameters

system ISystem
The ISystem implementation for the runtime to use.
arch IArchitecture
The IArchitecture implementation for the runtime to use.

Returns

IRuntime
An IRuntime implementation for the currently running runtime.

Remarks

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

Exceptions

PlatformNotSupportedException
Thrown if Runtime returns an unsupported runtime kind.