Resharper shwo error with nameof() method
I am using Visual Studio 2017 version 15.5.5 and Resharper 2017.3.1, ASP.Net Core MVC 2.0
The resharper marks nameof(HomeController.Index ) with red color.

My Code:
using Microsoft.AspNetCore.Mvc;
namespace ControllersAndActions.Controllers
{
public class HomeController : Controller
{
public ViewResult Index()
{
return View("SimpleForm");
}
[HttpPost]
public RedirectToActionResult ReceiveForm(string name, string city)
{
return RedirectToAction(nameof(HomeController.Index), nameof(HomeController));
}
public ViewResult Data()
{
string name = TempData["name"] as string;
string city = TempData["city"] as string;
return View("Result", $"{name} lives in {city}");
}
}
}
Please sign in to leave a comment.
Hello!
Thank you for the feedback.
Please feel free to follow the reported issue - https://youtrack.jetbrains.com/issue/RSRP-468224.
Thank you.