Method 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
StringComparisonThe string comparison to use when comparing the route expressions. Defaults to Ordinal.
Returns
- bool
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
stringThe first route expression to compare.
routeExpression2
stringThe second route expression to compare.
stringComparer
StringComparisonThe string comparison to use when comparing the route expressions. Defaults to Ordinal.
Returns
- bool
true
if the route expressions overlap; otherwise,false
.