How can I use CodeDOM to create and load an assembly in an AppDomain?
问题 I am working on a project that will use CodeDOM to create a class that evaluates a user-defined expression, creates an assembly for the class, and loads the assembly. Since there can be a fair number of user-defined expressions, I would like to first create an AppDomain, execute the CodeDOM creation/loading and executing for the assembly within that AppDomain, and then unload the AppDomain. I've searched quite a bit, and found many examples of how to load an existing assembly into an