Class CodeInstructionsExtensions
- Namespace
- HarmonyLib
- Assembly
- 0Harmony.dll
Extensions for a sequence of CodeInstruction
public static class CodeInstructionsExtensions
- Inheritance
-
objectCodeInstructionsExtensions
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
instructionsIEnumerable<CodeInstruction>The CodeInstructions (like a body of a method) to search in
matchesCodeMatch[]An array of CodeMatch representing the sequence of codes you want to search for
Returns
- bool