Show / Hide Table of Contents

Class ReversePatcher

A reverse patcher

Inheritance
System.Object
ReversePatcher
Namespace: HarmonyLib
Assembly: 0Harmony.dll
Syntax
public class ReversePatcher

Constructors

| Improve this Doc View Source

ReversePatcher(Harmony, MethodBase, HarmonyMethod)

Creates a reverse patcher

Declaration
public ReversePatcher(Harmony instance, MethodBase original, HarmonyMethod standin)
Parameters
Type Name Description
Harmony instance

The Harmony instance

System.Reflection.MethodBase original

The original method/constructor

HarmonyMethod standin

Your stand-in stub method as HarmonyMethod

Methods

| Improve this Doc View Source

Patch(HarmonyReversePatchType)

Applies the patch

Declaration
public MethodInfo Patch(HarmonyReversePatchType type = HarmonyReversePatchType.Original)
Parameters
Type Name Description
HarmonyReversePatchType type

The type of patch, see HarmonyReversePatchType

Returns
Type Description
System.Reflection.MethodInfo

The generated replacement method

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX