Method GetMethodAbiFlags
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
usageMethodAbiUsage- The MethodAbiUsage indicating which method usage to consider.
methodMethodBase- The method to check.
handleRuntimeMethodHandle- The RuntimeMethodHandle of
methodto check. This MUST be a valid RuntimeMethodHandle corresponding tomethodif it is specified.
Returns
- MethodAbiFlags
- The MethodAbiFlags for the
methodvariant identified byhandle.
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.