为什么 VS 告诉我在 mvc 中更改此操作的签名
why VS tell me change signature for this action in mvc
对于 C# 中的此操作 asp.net mvc VS 向我显示更改签名的黄色气泡。我使用 VS 2017.
为什么要显示这个错误
[AllowAnonymous]
public ActionResult Index(string returnUrl)
{
AdminLoginViewModel loginModel = new AdminLoginViewModel();
loginModel.Email = string.Empty;
loginModel.Password = null;
ViewBag.ReturnUrl = returnUrl;
return View();
}
the light bubble
after click on light bubble show me this window. whats does means?
有什么想法吗?
这不是错误,这是从 Visual Studio 2015 年开始出现的经典灯泡,该功能会根据上下文向您显示一些建议。
对于 C# 中的此操作 asp.net mvc VS 向我显示更改签名的黄色气泡。我使用 VS 2017.
为什么要显示这个错误
[AllowAnonymous]
public ActionResult Index(string returnUrl)
{
AdminLoginViewModel loginModel = new AdminLoginViewModel();
loginModel.Email = string.Empty;
loginModel.Password = null;
ViewBag.ReturnUrl = returnUrl;
return View();
}
the light bubble
after click on light bubble show me this window. whats does means?
有什么想法吗?
这不是错误,这是从 Visual Studio 2015 年开始出现的经典灯泡,该功能会根据上下文向您显示一些建议。