I am using mono cecil to inject some code at the entry point of some methods. I am trying to use Disassembler.GetInstructions() to get IL code of a method which I need to inject but the instructions from Disassembler.GetInstructions() doesn't fit into ILprocessor.InsertBefore() function. I think you are the author of mono cecil so you would know how to do it.
I am using mono cecil to inject some code at the entry point of some methods. I am trying to use Disassembler.GetInstructions() to get IL code of a method which I need to inject but the instructions from Disassembler.GetInstructions() doesn't fit into ILprocessor.InsertBefore() function. I think you are the author of mono cecil so you would know how to do it.