Method
Router.IsRouteExpressionsOverlap
IsRouteExpressionsOverlap(in ReadOnlySpan<char>, in ReadOnlySpan<char>, StringComparison) #
Determines whether two route expressions overlap.
public static bool IsRouteExpressionsOverlap(in ReadOnlySpan<char> routeExpression1, in ReadOnlySpan<char> routeExpression2, StringComparison stringComparer = StringComparison.Ordinal)Parameters #
routeExpression1 ReadOnlySpan<char>
The first route expression to compare.
routeExpression2 ReadOnlySpan<char>
The second route expression to compare.
stringComparer StringComparison
The string comparison to use when comparing the route expressions. Defaults to Ordinal.
Returns #
true if the route expressions overlap; otherwise, false.
IsRouteExpressionsOverlap(string, string, StringComparison) #
Determines whether two route expressions overlap.
public static bool IsRouteExpressionsOverlap(string routeExpression1, string routeExpression2, StringComparison stringComparer = StringComparison.Ordinal)Parameters #
routeExpression1 string
The first route expression to compare.
routeExpression2 string
The second route expression to compare.
stringComparer StringComparison
The string comparison to use when comparing the route expressions. Defaults to Ordinal.
Returns #
true if the route expressions overlap; otherwise, false.