我有两个项目文件。一个叫做Business,另一个是我在visual studio 2010中的网站项目。我正在尝试将一个名为" AccountManager“的类放入业务项目中,无论何时对网站执行某些操作,它都会转到AccountManager,例如,使用"CreateAccount(string,string,string)”创建一个帐户。我很难将这些链接在一起。我一直收到错误,说
constructors does not contain a constructor that takes '0' argument
而且还
'Business.AccountManager' does not contain a definition for 'CreateAccount' and no extension method 'CreateAccount' accepting a first argument of type 'Business.AccountManager' could be found (are you missing a using directive or an assembly reference?)
我不太确定我是不是错过了某个导入?或者是参考资料?
发布于 2011-02-28 11:26:00
确保将构造函数标记为公共,并将方法标记为公共...
https://stackoverflow.com/questions/5137305
复制相似问题