Browse documentation

Class CodeInstructionsExtensions

Namespace
HarmonyLib
Assembly
0Harmony.dll

Extensions for a sequence of CodeInstruction

public static class CodeInstructionsExtensions
Inheritance
object
CodeInstructionsExtensions

Methods

Matches(IEnumerable<CodeInstruction>, CodeMatch[])

Searches a list of CodeInstruction by running a sequence of CodeMatch against it

public static bool Matches(this IEnumerable<CodeInstruction> instructions, CodeMatch[] matches)

Parameters

instructions IEnumerable<CodeInstruction>

The CodeInstructions (like a body of a method) to search in

matches CodeMatch[]

An array of CodeMatch representing the sequence of codes you want to search for

Returns

bool
Harmony 3 preview

For the stable release, read the 2.x documentation.