user156144
user156144

Reputation: 2295

disassemble managed binary to get .cs code

Is this possible? I have a binary that throws an access violation exception when instrumented. I want to step through instrumented code, so I need to generate source code of the instrumented code. Is there a way?

Thanks

Upvotes: 0

Views: 254

Answers (1)

µBio
µBio

Reputation: 10748

.Net Reflector is closest to what you want.

update:
As pointed out in comments, Reflector works on static assemblies, not runtime assemblies so it may not be able to get the instrumented code. Maybe Reflector Pro or a plugin can do it, but I don't know since I have never needed that capablility.

Upvotes: 6

Related Questions