src/packages/EmbedIO/Routing/RouteMatcher.cs
/// <summary>
/// Constructs an instance of <see cref="RouteMatcher"/> by parsing the specified route.
/// <para>If the same route was previously parsed and the <see cref="ClearCache"/> method has not been called since,
/// this method obtains an instance from a static cache.</para>
/// </summary>
/// <param name="route">The route to parse.</param>
/// <param name="isBaseRoute"><see langword="true"/> if the route to parse
/// is a base route; otherwise, <see langword="false"/>.</param>
/// <returns>A newly-constructed instance of <see cref="RouteMatcher"/>
/// that will match URL paths against <paramref name="route"/>.</returns>
/// <exception cref="ArgumentNullException"><paramref name="route"/> is <see langword="null"/>.</exception>
/// <exception cref="FormatException"><paramref name="route"/> is not a valid route.</exception>
/// <seealso cref="TryParse"/>
/// <seealso cref="ClearCache"/>
Constructs an instance of  by parsing the specified route.
If the same route was previously parsed and the  method has not been called since,
this method obtains an instance from a static cache.
Constructs an instance of by parsing the specified route . If the same route was previously parsed and the method has not been called since this method obtains an instance from a static cache .
public static RouteMatcher Parse(string route, bool isBaseRoute)
        {
            if (!TryParseInternal(route, isBaseRoute, out var result, out var exception))
                throw exception;
            return result;
        }
public static RouteMatcher Parse ( string route , bool isBaseRoute ) { if ( ! TryParseInternal ( route , isBaseRoute , out var result , out var exception ) ) throw exception ; return result ; }
Constructs an instance of  by parsing the specified route.
Constructs an instance of by parsing the specified route .
A newly-constructed instance of
that will match URL paths against .
A newly - constructed instance of that will match URL paths against .
None
None
route
string
The route to parse.
The route to parse .
isBaseRoute
bool
if the route to parse
is a base route; otherwise, .
if the route to parse is a base route ; otherwise .
seealso
None
seealso
None