Class InnerPrefix
An inner prefix that is applied inside some method call inside a method
Namespace: HarmonyLib
Assembly: 0Harmony.dll
Syntax
public class InnerPrefix : InnerFix
Constructors
| Improve this Doc View SourceInnerPrefix(InnerMethod)
Creates an infix for an implicit defined method call
Declaration
public InnerPrefix(InnerMethod innerMethod)
Parameters
Type | Name | Description |
---|---|---|
InnerMethod | innerMethod | The method call to apply the fix to |
InnerPrefix(Func<IEnumerable<CodeInstruction>, InnerMethod>)
Creates an infix for an indirectly defined method call
Declaration
public InnerPrefix(Func<IEnumerable<CodeInstruction>, InnerMethod> targetFinder)
Parameters
Type | Name | Description |
---|---|---|
System.Func<System.Collections.Generic.IEnumerable<CodeInstruction>, InnerMethod> | targetFinder | Calculates Target from a given methods content |