using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace MvcMusicStore.Controllers
{
public class StoreController : Controller
{
//
// GET: /Store/
public string Index()
{
return "MvcMusicsStore.Controllers.StoreController.Index";
}
}
}
How to return a method’s fully-qualified name on the fly?
Without any hard coding? Something like maybe?
Or perhaps prettier:
(I used
staticbecause I assume in the real code you’d want to put the method in a utility class somewhere)