Inject new/specific code in a class instead of old/generic code using CInject

Aug 20, 2015 at 3:59 PM
I am trying to inject a code into an existing dll in c#.
The generic/existing dll has Timers for starting a procedure. So when the timer elapses i want the new injected code/procedure to run and not the old/generic code.

I m not sure if this will work using CInject. And i dont know how to start.

Can you please help and shed some light on this?

I tried your windows forms example and it works good.