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
routeExpression1ReadOnlySpan<char>The first route expression to compare.
routeExpression2ReadOnlySpan<char>The second route expression to compare.
stringComparerStringComparisonThe string comparison to use when comparing the route expressions. Defaults to Ordinal.
Returns
- bool
trueif 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
routeExpression1stringThe first route expression to compare.
routeExpression2stringThe second route expression to compare.
stringComparerStringComparisonThe string comparison to use when comparing the route expressions. Defaults to Ordinal.
Returns
- bool
trueif the route expressions overlap; otherwise,false.
English
Русский
Português
Español
Deutsch
中文 (简体)
日本語