调用方式
例1:
using System;
//引用命名空间
using System.Reflection;
class program
{
static void Main(string[] args)
{
System.Guid guid = new Guid("3ba6d31e-c449-4e14-a5c1-f9218ec1338c");
//Type com1 = Type.GetTypeFromCLSID(guid, true);
Type com = Type.GetTypeFromProgID("MyLib.MyClass");
//创建其对象
if (com!=