Disassemble or Reflection

  • Thread starter Thread starter g4685034
  • Start date Start date
G

g4685034

Hello,

I develop a program to dump what are in an assembly using Reflection.
I try both Assembly.LoadFile and Assembly.ReflectionOnlyLoadFrom. A
problem is if a type of some field refers to other assembly, a
FileNotFoundException is thrown. I found that ildasm can view the
assembly without open the referenced assembly. Can I use Reflection?
How can I solve this problem?

Thanks,
Theewara
 
I develop a program to dump what are in an assembly using Reflection.
I try both Assembly.LoadFile and Assembly.ReflectionOnlyLoadFrom. A
problem is if a type of some field refers to other assembly, a
FileNotFoundException is thrown. I found that ildasm can view the
assembly without open the referenced assembly. Can I use Reflection?
How can I solve this problem?

I don't think you'll be able to do this without either the other
assembly on the lookup path, or by abandoning Reflection and using
something else.

Have you checked out Cecil?

http://www.mono-project.com/Cecil

-- Barry
 
Back
Top