Blog link: not gonna update
- A Demo to replace method with JIT(Or we could called "creating managed hooks")
- The DEBUG block in Project.cs line 121 is for debuging.
- Abount getting function address is kind of different betweent debuging or compiling
- Just a Demo 1.The picture down below is the running result.
- None
- Fixed bug: Relative Address output in wrong format - 20211222
1. https://docs.microsoft.com/zh-cn/dotnet/api/system.runtime.compilerservices.runtimehelpers.preparemethod?view=net-6.0
2. https://gist.github.com/HoLLy-HaCKeR/c1fcee3df1ea35e7816c55147e6db78d
3. https://www.codenong.com/cs106378408/
4. http://www.ostack.cn/?qa=1418702/
5. https://www.buzzphp.com/posts/dynamically-append-code-to-a-method-net-core