如果在A模块中又加载B模块
对event.module.factory.create();出来的对象转型接口会导致null.
但在对象的确是实现了接口的。
应该在loader上设置域,具体是:
_moduleLoader.applicationDomain = ApplicationDomain.currentDomain;
对event.module.factory.create();出来的对象转型接口会导致null.
但在对象的确是实现了接口的。
应该在loader上设置域,具体是:
_moduleLoader.applicationDomain = ApplicationDomain.currentDomain;
本文介绍了解决在A模块加载B模块时,通过event.module.factory创建的对象进行接口转型导致null的问题。提出解决方案是在_moduleLoader.applicationDomain设置为ApplicationDomain.currentDomain。
1818

被折叠的 条评论
为什么被折叠?



