Application Domains
Application domains are usually created and manipulated programmatically by runtime hosts. However, sometimes an application program might also want to work with application domains. For example, an application program could load an application component into a domain to be able to unload the domain (and the component) without having to stop the entire application. Appdomain 通常由runtime host来创建和操纵。然而, 有时候,应用程序也可能会使用appdomain工作。例如,一个应用程序可以load一个应用组件到一个domain,从而可以在unload这个domain和这个组件,而不用停止整个应用。 You must load an assembly into an application domain before you can execute the code it contains.