Table of Contents

Method Compile

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

Compile(MethodBase, RuntimeMethodHandle)

Prepares method by calling PrepareMethod(RuntimeMethodHandle).
public void Compile(MethodBase method, RuntimeMethodHandle handle = default)

Parameters

method MethodBase
The method to prepare.
handle RuntimeMethodHandle
The RuntimeMethodHandle for the variant of method to compile.

Remarks

Unlike PrepareMethod(RuntimeMethodHandle), this method handles generic instantiations. In order to do this, however, it has to perform a fair bit of reflection on invocation. Avoid calling it multiple times for the same method, if possible.