Table of Contents

Method TryDisableInlining

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

TryDisableInlining(MethodBase, RuntimeMethodHandle)

Tries to disable inlining of the provided method, if the underlying runtime supports it.
public bool TryDisableInlining(MethodBase method, RuntimeMethodHandle handle = default)

Parameters

method MethodBase
The method to disable inlining of.
handle RuntimeMethodHandle
The RuntimeMethodHandle of the variant of method to disable inlining on.

Returns

bool
true if inlining could be disabled; false otherwise.