Table of Contents

Method GetMethodHandle

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

GetMethodHandle(MethodBase)

Portably gets the RuntimeMethodHandle for a given MethodBase.
RuntimeMethodHandle GetMethodHandle(MethodBase method)

Parameters

method MethodBase
The method to get the handle of.

Returns

RuntimeMethodHandle
The RuntimeMethodHandle of the normal underlying method.

Remarks

This method must always be implemented. For simple cases, its implementation can be just a call to MethodHandle, however most runtimes have edge cases which that is not well-behaved for.

Some methods have multiple underlying method handles which may be relevant. This method returns only the "normal" one.