public static ContainsInclusion ( this |
||
routeMatches | this |
|
absolutePath | string | The absolute path. |
return | bool |
public static bool ContainsInclusion(this IEnumerable<RouteMatchElement> routeMatches, string absolutePath)
{
return routeMatches.Cast<RouteMatchElement>().Any(element => element.Type == RouteMatchTypes.Include && element.IsMatch(absolutePath));
}