Table of Contents

Method GetMethodAbiFlags

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

GetMethodAbiFlags(MethodAbiUsage, MethodBase, RuntimeMethodHandle)

Gets the MethodAbiFlags for a given MethodBase, optionally specifying a specific variant via handle.
MethodAbiFlags GetMethodAbiFlags(MethodAbiUsage usage, MethodBase method, RuntimeMethodHandle handle = default)

Parameters

usage MethodAbiUsage
The MethodAbiUsage indicating which method usage to consider.
method MethodBase
The method to check.
handle RuntimeMethodHandle
The RuntimeMethodHandle of method to check. This MUST be a valid RuntimeMethodHandle corresponding to method if it is specified.

Returns

MethodAbiFlags
The MethodAbiFlags for the method variant identified by handle.

Remarks

In an ideal world, handle would be sufficient to uniquely identify the ABI we care about. Unfortunately, we currently have many runtimes where we can't find "hidden" method handles, and so cannot in practice identify certain things by them. We thus use usage as a workaround so we can do this determination based on our usage patterns alone.