Back to Harmony

Class CodeInstructionsExtensions

docs/api/HarmonyLib.CodeInstructionsExtensions.html

2.4.2.01.1 KB
Original Source

Class CodeInstructionsExtensions

Extensions for a sequence of CodeInstruction

Inheritance

System.Object

CodeInstructionsExtensions

Namespace : HarmonyLib
Assembly : 0Harmony.dll
Syntax
public static class CodeInstructionsExtensions

Methods

Matches(IEnumerable<CodeInstruction>, CodeMatch[])

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

Declaration
public static bool Matches(this IEnumerable<CodeInstruction> instructions, CodeMatch[] matches)
Parameters
TypeNameDescription
System.Collections.Generic.IEnumerable<CodeInstruction>instructions

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

| | CodeMatch[] | matches |

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

|

Returns
TypeDescription
System.Boolean