1
我在控制檯應用程序如何在控制檯應用程序中實現MVP?
class Program : IView
{
private static ViewPresenter _presenter;
static void Main(string[] args)
{
_presenter = new ViewPresenter(this);
}
}
以下在Program.cs中的代碼,但我不能傳遞到this
演示者,作爲主要的方法是static
。現在我怎麼能做這個工作?