I want to change the .Net IL code of an existing class on the fly. Is it possible somehow? I found some links to the .Net Profiling API, but according to the documentation it does not support self-editing applications. The main goal is to replace getters and setters of some properties. Any hint would be greatly appreciated.
amuses, Achim
I suggest you check out Mono Cecil . Do not think that you cannot use Mono executables in a Windows.NET application.
Cecil is like a reflection on steroids. You can not only reflect on the assembly, but also change its IL and save the result.
- .
,.NET CLR Injection: IL
Source: https://habr.com/ru/post/1773256/More articles:Could anyone use a fast path PDU in an RDP client? - encryptionHow can I find out what the TSQL Entity Framework generates for a query? - tsqlSimple thread test - multithreadingJava Monthly Timer - javaIs this expected? - cСписок в словарь - dictionaryIs there a reliable way to animate javascript while playing an audio file in a browser? - javascriptIs there a way to get a range from an ObservableCollection? - c #How to change the main page for a specific page in sharepoint - master-pagesHow to add Access-Control-Allow-Origin to the ASMX web service that I created in VB? - ajaxAll Articles