I read about AppDomains for many hours, but I'm not sure if they work the way I hope.
If I have two classes, common Foo <T> in AppDomain # 1, Bar in AppDomain # 2:
Appendix No. 1 is an application. App Domain # 2 is something like a plugin, and it can be loaded and unloaded dynamically.
AppDomain # 2 wants to create a Foo <Bar> and use it. Foo <T> uses many classes in AppDomain # 1 internally.
I don't want AppDomain # 2 to use a foo object with reflection, I want it to use Foo <Bar> foo, with all the static typing and compiled speed that comes with it. Can this be done, given that AppDomain # 1 containing Foo <T> is never unloaded?
If so, is there any deletion when using Foo <Bar>?
When I unload AppDomain # 2, is the Foo <Bar> type destroyed?
to edit . SO removed all my> added back manually.
Eloff source
share