This is a stripped down version of the Reflexil. It contains Reflexil's version of the Mono.Cecil library + helper classes (ByteHelper.cs, CecilHelper.cs). It's main purpose is to be able to inject/patch a .Net code without GUI-mode Reflexil plugin.
I've removed dependency on the Reflexil's settings and edited CloneMethodBody
method to accept 2
overloads:
OverloadDefinitions
-------------------
static void CloneMethodBody(Mono.Cecil.Reflexil.MethodDefinition source, Mono.Cecil.Reflexil.MethodDefinition target)
static void CloneMethodBody(Mono.Cecil.Reflexil.MethodDefinition source, Mono.Cecil.Reflexil.MethodDefinition target, bool OptimizeAndFixIL)
If you don't want to build this project yourself, just download the Mono.Cecil.Reflexil.dll binary.
See my Ori Controller Remap tool, which uses this library in PowerShell to replace method in the assembly.