Passing objects between AppDomains

  • Thread starter Thread starter Dmitry Shaporenkov
  • Start date 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
 
Back
Top