Being new to C#'s advanced functionality and VM, I ask myself if C# does provide a similar mechanism like the JVM's agent functionality of inspecting, modifying and potentially replacing C# classes?
Asked
Active
Viewed 328 times
1
-
1Instead of tinkering with your code after the fact, make your code more composable from the ground up. That way you don't need any "augmentation" to be hacked together in any way. – Federico Berasategui Sep 17 '15 at 23:33
-
1There are many things need to be done exactly this way. – Martin Kersten Sep 17 '15 at 23:58
1 Answers
0
It can be done at a low level through the use of IL. Please see this answer for details and a possible alternative:
-
Are there any libraries easying the pain like an equivalent of cglib / jasm or javasist? – Martin Kersten Sep 17 '15 at 23:59