Let\'s say I have a buggy application like this:
using System; namespace ConsoleApplication1 { class Program { static void Main(string[] args)
Rather than injecting MSIL at runtime, have you considered inserting the source directly into the assembly?
You can disassemble with ildasm, insert your MSIL, and then reassemble with ilasm, then deploy the product of that.