Skip to content

HookTargetRecords.HookTargetInfo Class

Information about a hook target method.

C#
public class HookTargetRecords.HookTargetInfo

Inheritance object

Information relevant to Prefix hooks.

C#
public HookTargetRecords.TargetPrefixInfo PrefixInfo { get; }

Information relevant to Postfix hooks.

C#
public HookTargetRecords.TargetPostfixInfo PostfixInfo { get; }

The local variable containing the return value of the method.

C#
public VariableDefinition? ReturnValue { get; }

A list of the original instructions before the method was manipulated.

C#
public ReadOnlyCollection<Instruction> OriginalInstructions { get; }

This list has the same instruction instances as the current MonoMod.Cil.ILContext, meaning some may have been modified.

Give the provided instruction an owner name to identify it by in MonoDetour’s CIL analysis exception reports.

C#
public void SetInstructionOwner(Instruction instruction, string owner)

instruction Instruction
The instruction to give an owner to.

owner string
The owner name.

Names above 25 characters are truncated. Note that this limit could be changed in the future.