public class Test{
public void Export<T1, T2>()
{
}
public void ExportByClassName(string typename1,string typename2)
{
Type t1 = Type.GetType(typename1);
Type t2 = Type.GetType(typename2);
MethodInfo mi = this.GetType().GetMethod("Export").MakeGenericMethod(new Type[] { t1,t2});
mi.Invoke(this,null);
}
}本文出自勇哥的网站《少有人走的路》wwww.skcircle.com,转载请注明出处!讨论可扫码加群:



少有人走的路


















