Table of Contents

Method DisableInlining

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

DisableInlining(MethodBase, RuntimeMethodHandle)

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.
void DisableInlining(MethodBase method, RuntimeMethodHandle handle = default)

Parameters

method MethodBase
The method to disable inlining for.
handle RuntimeMethodHandle
The RuntimeMethodHandle of method to disable inlining for. This MUST be a valid RuntimeMethodHandle corresponding to method if it is specified.

Remarks

This must only be called if Features includes DisableInlining. Typically, callers should use TryDisableInlining(MethodBase, RuntimeMethodHandle), which automatically checks that feature flag, calling this method if available.