动态加载的 DLL,其类型实例只能通过 Activator.CreateInstance,或者 Assembly.InvokeMethod 来创建。由于其类型元数据不在宿主应用程序程序集 IL 元数据中,因此,没办法通过类似于 SomeType t = new SomeType() 这样构造。Mark Zhou
动态加载的 DLL,其类型实例只能通过 Activator.CreateInstance,或者 Assembly.InvokeMethod 来创建。由于其类型元数据不在宿主应用程序程序集 IL 元数据中,因此,没办法通过类似于 SomeType t = new SomeType() 这样构造。Mark Zhou