Method Compile
Compile(MethodBase, RuntimeMethodHandle)
Compiles the provided method so that it has a native method body.
void Compile(MethodBase method, RuntimeMethodHandle handle = default)
Parameters
methodMethodBase- The method to compile.
handleRuntimeMethodHandle- The RuntimeMethodHandle of
methodto compile. This MUST be a valid RuntimeMethodHandle corresponding tomethodif it is specified.
Remarks
This must only be called if Features includes RequiresCustomMethodCompile. Typically, callers should use Compile(MethodBase, RuntimeMethodHandle), 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.