Table of Contents

Method DisableInlining

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

DisableInlining(MethodBase)

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)

Parameters

method MethodBase
The method to disable inlining for.

Remarks

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