Method Compile
Compile(MethodBase, RuntimeMethodHandle)
Prepares
method by calling PrepareMethod(RuntimeMethodHandle).public void Compile(MethodBase method, RuntimeMethodHandle handle = default)
Parameters
methodMethodBase- The method to prepare.
handleRuntimeMethodHandle- The RuntimeMethodHandle for the variant of
methodto 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.