日期:2014-05-20 浏览次数:20987 次
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
namespace _62.DALFactory
{
public class News
{
public static _62.IDAL.INews Create()
{
string path = System.Configuration.ConfigurationManager.AppSettings["WebDAL"].ToString();
string classname = path + ".News";
return (_62.IDAL.INews)Assembly.Load(path).CreateInstance(classname);
}
}
}