Пример #1
0
 private static string[] GetParameterNames(LegacyRouteTemplate routeTemplate)
 {
     return(routeTemplate.Segments
            .Where(s => s.IsParameter)
            .Select(s => s.Value)
            .ToArray());
 }
Пример #2
0
 public LegacyRouteEntry(LegacyRouteTemplate template, Type handler, string[] unusedRouteParameterNames)
 {
     Template = template;
     UnusedRouteParameterNames = unusedRouteParameterNames;
     Handler = handler;
 }