Table of Contents

Method Compile

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

Compile(MethodBase)

Compiles the provided method so that it has a native method body.
void Compile(MethodBase method)

Parameters

method MethodBase
The method to compile.

Remarks

This must only be called if Features includes RequiresCustomMethodCompile. Typically, callers should use Compile(MethodBase), which automatically calls this method when available.

When an implementer sets the feature flag RequiresCustomMethodCompile, it takes on the full responsibility of ensuring that a method is compiled. No additional work is done by PlatformTriple.