title: How to determine if mapped route is being used in ASP.NET MVC solution
body: <p>I'm working on the route configuration of a solution that previously had many unnecessary calls to <code>RouteCollection.MapRoute()</code> which essentially could all be replaced with a default route by merely changing the ActionResult methods a little.  Now I'm down to just one route besides the default and I'm having a hard time telling if it's being used anywhere in the solution.  The code now looks like this:</p>
  
  <pre><code>routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
  routes.IgnoreRoute("{directory}/{resource}.asmx/{*pathInfo}");
  
  routes.MapRoute(
      "Default",
      "{controller}/{action}/{id}",  
      new { controller = "Home", action = "Index", id = "" }
  );
  
  routes.MapRoute("GridPaging", "{controller}/{action}/{page}", null);
  </code></pre>
  
  <p>The variable <code>routes</code> is an instance of <code>RouteCollection</code>.  So, is there some way I can determine if the GridPaging route is actually being used anywhere?  As an aside, Visual Studio indicates that the overload being used for that call to MapRoute is <a href="https://msdn.microsoft.com/en-us/library/dd492682(v=vs.100).aspx" rel="nofollow">the one where the fourth parameter is the string array of namespaces</a>.  I'm not sure how it decides on that signature given the null argument could <a href="http://www.merriam-webster.com/dictionary/supposably" rel="nofollow">supposably</a> resolve to <a href="https://msdn.microsoft.com/en-us/library/dd505187(v=vs.100).aspx" rel="nofollow">this overload</a> as well.</p>