public static T xueshengbiaoDAO<T>() where T:class {
string DllName = ConfigurationManager.AppSettings["DllName"];
Assembly assemblys = Assembly.Load(DllName);//载入程序集
Type[] Types = assemblys.GetTypes();
Type jiekou = null;
for (int a = 0; a < Types.Length; a++)
{
if (typeof(T).IsAssignableFrom(Types[a]))
{
jiekou = Types[a];
break;
}
}
return (T)Activator.CreateInstance(jiekou);
}