This library wraps MemoryPEInjector C++ class into .NET Framework DLL, so you can use it in your .NET projects.
Add dependency to your project and use as follows:
byte[] peFile = File.ReadAllBytes(peFilePath);
MemoryPEInjector.PEInjector peInjector = new MemoryPEInjector.PEInjector();
unsafe
{
fixed (byte* ptr = peFile)
{
peInjector.Inject(ptr);
}
}