/// <summary>Unpatches a specific patch</summary> /// <param name="patch">The method of the patch</param> /// <returns>A <see cref="PatchProcessor"/> for chaining calls</returns> /// public PatchProcessor Unpatch(MethodInfo patch) { lock (locker) { var patchInfo = original.ToPatchInfo(); patchInfo.RemovePatch(patch); var replacement = PatchFunctions.UpdateWrapper(original, patchInfo); PatchManager.AddReplacementOriginal(original, replacement); return(this); } }