摘要:
1.调用COM组件:Type type = Type.GetTypeFromProgID("VisualPHD.Data"); dynamic phd = Activator.CreateInstance(type);phd.HostName = "192.168.53.186";2. 反射调用dotNet类Type type = Type.GetType("ConsoleApplication1.Test"); dynamic t = Activator.CreateInstance(type); t.Print("你好! 阅读全文