MethodDefinitionExtensions Class
Definition
Section titled “Definition”Extension methods for MethodDefinition.
public static class MethodDefinitionExtensionsInheritance object
Methods
Section titled “Methods”ILWeave(MethodDefinition, Manipulator)
Section titled “ILWeave(MethodDefinition, Manipulator)”Manipulate a MethodDefinition in an ILHook-like environment without being in a real ILHook. Useful when runtime detouring is not possible, such as when writing IL modifications in BepInEx preloader patchers.
Using this method while already in an ILHook is pointless.
public static void ILWeave(this MethodDefinition method, ILManipulationInfo.Manipulator manipulator)Parameters
Section titled “Parameters”method MethodDefinition
The target method to manipulate.
manipulator ILManipulationInfo.Manipulator
An IL manipulator method accepting a ILManipulationInfo.