Sisk

Method

Router.IsRouteExpressionsOverlap

Namespace
Sisk.Core.Routing
Assembly
Sisk.Core.dll

IsRouteExpressionsOverlap(in ReadOnlySpan<char>, in ReadOnlySpan<char>, StringComparison) #

Determines whether two route expressions overlap.

C#
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 #

bool

true if the route expressions overlap; otherwise, false.

IsRouteExpressionsOverlap(string, string, StringComparison) #

Determines whether two route expressions overlap.

C#
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 #

bool

true if the route expressions overlap; otherwise, false.

Type to search the documentation and the API reference.