当前位置: 动力学知识库 > 问答 > 编程问答 >

c# 4.0 - Cannot create an instance of the abstract class or interface 'DBSQLProvider

问题描述:

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

}

分享给朋友:
您可能感兴趣的文章:
随机阅读: