Accessing IL code using System.Reflection

  • Thread starter Thread starter Testing1000
  • Start date Start date
T

Testing1000

Hello,

Is there away in .Net to view an assemblies IL code after
I get the Assembly object via call to Assembly.LoadFrom
(assemblyName). I don't want to use utilities like
Reflector for this type of development. I am using
Framework 1.1.

Please help.
 
Lutz Roeder has an ILReader class that is capable of something like this.

Otherwise wait until Whidbey. You can get the IL for any method body,
and you can optionally load Assemblies in a reflection only mode so that
the assembly is guaranteed not to run any code, before you've gotten a
chance to fully inspect it's IL. This is a great feature for plug-in hosters.
 
Back
Top