Table of Contents

Interface IRuntime

Namespace
MonoMod.Core.Platforms
Assembly
MonoMod.Core.dll
Represents a host .NET runtime.
public interface IRuntime

Properties

Abi
Gets the Abi descriptor for this runtime.
Features
Gets the set of RuntimeFeatures that this instance supports. Some members may only be available with certain feature flags set.
Target
Gets the RuntimeKind that this instance represents.

Methods

Compile(MethodBase)
Compiles the provided method so that it has a native method body.
DisableInlining(MethodBase)
Disables inlining for a particular method. After this is called, future invocations of this method will not be inlined at the callsite by the runtime.
GetIdentifiable(MethodBase)
Gets an "identifiable" MethodBase. The returned instance is safe to use with object identity to refer to specific methods.
GetMethodEntryPoint(MethodBase)
Gets the real entrypoint of the provided method.
GetMethodHandle(MethodBase)
Portably gets the RuntimeMethodHandle for a given MethodBase.
PinMethodIfNeeded(MethodBase)
Pins a method so that it will not be garbage collected, if that is necessary for this runtime.
RequiresGenericContext(MethodBase)
Determines whether a particular method requires a generic context to be provided to it by the runtime.

Events

OnMethodCompiled
An event which is invoked when a method is compiled.