Class CodeInstructionsExtensions
Extensions for a sequence of CodeInstruction
Inheritance
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
Type | Name | Description |
---|---|---|
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
Type | Description |
---|---|
bool |