modify the assembly on runtime?
问题 how can i modify memory loaded methods in given assembly so that clr when instantiates new objects for some class it makes new objects with modified code in it? 回答1: You can use Mono Cecil to modify the assembly before you load it. You can save the modified assembly to a byte array, then call Assembly.Load to load the byte array. 回答2: I don't think you can do that. But you can generate new classes in a new, in-memory assembly using Reflection.Emit. That is a lot of work though. You can get