日期:2014-05-20 浏览次数:20771 次
Assembly ab = Assembly.LoadFile("D:\\name.dll"); Type tp = ab.GetTypes()[0]; MethodInfo mi = tp.GetMethod("GetName"); object obj=ab.CreateInstance(tp.Namespace+"."+tp.Name); string str = mi.Invoke(obj, new object[]{"aa"}).ToString();