Table of Contents

Method GetRealDetourTarget

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

GetRealDetourTarget(MethodBase, MethodBase, AbiArgumentMap)

Gets the 'real detour target' when detouring src to dst.
public MethodBase GetRealDetourTarget(MethodBase src, MethodBase dst, AbiArgumentMap argumentMap)

Parameters

src MethodBase
The method being detoured from.
dst MethodBase
The method being detoured to.
argumentMap AbiArgumentMap
The AbiArgumentMap specifying how to map arguments from src onto the arguments of dst.

Returns

MethodBase
The method to detour to instead of dst.

Remarks

This will return an ABI fixup method instead of dst when needed, automatically generating them when needed. When this is needed depends on the argument order in the ABI.