摘要: 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("你好! 阅读全文
posted @ 2012-03-15 13:44 81 阅读(561) 评论(0) 推荐(0) 编辑