在我的winform类里面我有构造函数
private IBookRepository _Repository;
public AddEditForm(IBookRepository repository )
{
InitializeComponent();
_Repository = repository;
}
现在我想使用构造函数链接,但在某个地方我做错了。我试过了
public AddEditForm(Book book) : this(IBookRepository repository)
{
...
}