Class CodeInstructionsExtensions
Extensions for a sequence of CodeInstruction
Inheritance
System.Object
CodeInstructionsExtensions
Namespace: HarmonyLib
Assembly: 0Harmony.dll
Syntax
public static class CodeInstructionsExtensions
Methods
| Improve this Doc View SourceMatches(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 |
---|---|---|
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
Type | Description |
---|---|
System.Boolean |