如何访问程序集的内部类?假设我想访问System.ComponentModel.Design.DesignerHost.这里的DesignerHost是一个内部密封的类.
如何编写代码来加载程序集和类型?
我正在使用反射加载一个DLL并试图调用一个返回一个的方法List<customType>.如何调用方法并获取返回值.我试过这个,但是说entry point not found exception.
MethodInfo[] info= classType.GetMethods();
MethodInfo method = mInfo.FirstOrDefault(c => c.Name == "GetDetails");
object values = method.Invoke(classInstance, new object[] { param1});
Run Code Online (Sandbox Code Playgroud)
值有例外entry point not found.