How to insert IL code call into class type constructor in .Net?

120 Views Asked by At

I have an assembly I want to use and test. Yet I can not change its source code as .cs files but I am allowed to change it at runtime (say on app loading). In there I have a class with a public constructor. I want to insert (or inject) a public static function call into it. How to do such thing in .Net?

0

There are 0 best solutions below