A free and open source library to implement interceptors in c#
There is an issue with function token solving between Assemblies, and due lack of time and knowledge in "low level" CIL, I give up this project for now. If you wish to take back the project, I am ready to add anyone as contributor or owner.
Teter28 and Logman for their answers on that post : http://stackoverflow.com/questions/7299097/dynamically-replace-the-contents-of-a-c-sharp-method and Hach-Que for asking in the first place ;)
stevesheldon for his work on https://github.com/stevesheldon/ExceptionReflector , on which i took the ILReader "extension". Quoting from his readme : "This article builds on the ILReader library found here:
http://blogs.msdn.com/b/haibo_luo/archive/2006/11/06/system-reflection-based-ilreader.aspx " (article from Haibo Luo)
Nawaz and swick for their question and anwer on that post : http://stackoverflow.com/questions/7671220/creating-method-dynamically-and-executing-it