private static string[] GetParameterNames(LegacyRouteTemplate routeTemplate) { return(routeTemplate.Segments .Where(s => s.IsParameter) .Select(s => s.Value) .ToArray()); }
public LegacyRouteEntry(LegacyRouteTemplate template, Type handler, string[] unusedRouteParameterNames) { Template = template; UnusedRouteParameterNames = unusedRouteParameterNames; Handler = handler; }