【发布时间】:2011-08-31 14:20:07
【问题描述】:
因为并非我要实例化的类中使用的所有类都是可序列化的,所以我无法解包。
这可能吗?
var appdom = AppDomain.CreateDomain(amServiceable.GetType().ToString());
var objectHandle = appdom.CreateInstance(amServiceable.GetType().Assembly.FullName,
amServiceable.GetType().FullName);
var plugin = objectHandle.Unwrap() as IPlugin //throws an error. that some class in not marked serializable.
【问题讨论】:
标签: c# reflection appdomain