If you want to make a small change to a .net application, is it possible to edit the MSIL directly?
Use ildasm.exe to decompile and recompile with ilasm.exe. For strong-named assemblies you will need the key file if you want that the recompiled assembly has the same identity as the original assembly.
来源:https://stackoverflow.com/questions/6746387/manually-edit-msil-in-compiled-dll