By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,369 Members | 1,138 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,369 IT Pros & Developers. It's quick & easy.

Disassemble or Reflection

P: n/a
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

Mar 17 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
g4******@cc.cpe.ku.ac.th wrote:
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

--
http://barrkel.blogspot.com/
Mar 18 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.