Karlovsky120
Karlovsky120

Reputation: 6352

Inject code into compiled dll

I'm trying to figure out the inner workings of a C#/Unity program and examining the source code has given little to no results.

Is it possible to inject commands into the already compiled dll without the need of recompiling it which would take weeks of work to accomplish?

I would want some methods to output some of the data to a file I provide or maybe just signal that they were accessed so I can make more sense of the source.

Upvotes: 1

Views: 2274

Answers (1)

Bala
Bala

Reputation: 704

You are referring to Code Weaving. You can check the below projects:

  1. Fody

  2. Mono Cecil

Upvotes: 2

Related Questions