Can I redirect .NET method calls to a new method at runtime?

后端 未结 5 885
我在风中等你
我在风中等你 2021-01-13 21:26

Suppose I have the following .NET classes:

public class C
{
    public void M()
    {
        ....
    }
}

and

public class         


        
5条回答
  •  北海茫月
    2021-01-13 22:04

    Yes you can

    Please see this http://www.codeproject.com/Articles/463508/Net-CLR-Injection-Modify-IL-Codes-on-Run-time

    You can do that by modifying the IL code on runtime

提交回复
热议问题