无法创建抽象类或接口'DBSQLProvider的实例

时间:2014-02-12 09:33:09

标签: c#-4.0 asp.net-4.0

public abstract class ProviderBase
{
    static private ProviderBase instance = null;

    static public ProviderBase Instance
    {
          get
         {

            if (instance == null)
                instance = new DBSQLProvider();

            instance = (ProviderBase)Activator.CreateInstance(
            Type.GetType("DBSQLProvider"));

            Return instance
}

0 个答案:

没有答案