12
I am using Mono Cecil to inject Code in another Method. I want to add a Try-Catch block around my code.
So i wrote a HelloWorld.exe with a try catch block and decompiled it.
It looks like this in Reflector for the Try-Catch:
.try L_0001 to L_0036 catch [mscorlib]System.Exception handler L_0036 to L_003b
How can i inject a try catch like this via mono cecil?