public StructuredRouteResult(StructuredRoute match, List <string> parameters) { Route = match ?? throw new ArgumentNullException(nameof(match)); for (var i = 0; i < match.ParameterKeys.Count; i++) { Parameters[match.ParameterKeys[i]] = parameters.ElementAtOrDefault(i); } }
public StructuredRouteResult(StructuredRoute match) { Route = match; }