Passing objects between AppDomains

  • Thread starter Dmitry Shaporenkov
  • Start date
D

Dmitry Shaporenkov

Hi all,

I need to extract type information from an assembly and
unload the assembly to prevent it from locking. So I
create separate application domain, explore the assembly
via Reflection in this domain (this results in building a
hierarchical data structure containing the information
about the types in the assembly) , and unload the domain.
The question is what is the best way to pass the data
structure from this domain to the default domain where
the main work happens? Should I use BinaryFormatter and
write a file or there are better methods?

Thanks in advance.
Dmitry Shaporenkov
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top