src/packages/EmbedIO/Routing/RouteMatch.cs
/// <summary>
/// Returns a <see cref="RouteMatch"/> object equal to the one
/// that would result by matching the specified URL path against
/// the specified parameterless base route.
/// </summary>
/// <param name="basePath">The base route to match <paramref name="path"/> against.</param>
/// <param name="path">The URL path to match.</param>
/// <returns>A newly-constructed <see cref="RouteMatch"/>.</returns>
/// <remarks>
/// <para>This method assumes that <paramref name="basePath"/> is a
/// valid base URL path, and <paramref name="path"/>
/// is a valid, non-base URL path or route. Otherwise, the behavior of this method
/// is unspecified.</para>
/// <para>Ensure that you validate both parameters before
/// calling this method, using either <see cref="Validate.UrlPath"/>
/// or <see cref="UrlPath.IsValid"/>.</para>
/// </remarks>
Returns a  object equal to the one
that would result by matching the specified URL path against
the specified parameterless base route.
Returns a object equal to the one that would result by matching the specified URL path against the specified parameterless base route .
public static RouteMatch UnsafeFromBasePath(string basePath, string path)
        {
            var subPath = UrlPath.UnsafeStripPrefix(path, basePath);
            return subPath == null ? None : new RouteMatch(path, EmptyStringList, EmptyStringList, "/" + subPath);
        }
public static RouteMatch UnsafeFromBasePath ( string basePath , string path ) { var subPath = UrlPath . UnsafeStripPrefix ( path , basePath ) ; return subPath == null ? None : new RouteMatch ( path , EmptyStringList , EmptyStringList , " " + subPath ) ; }
Returns a  object equal to the one
that would result by matching the specified URL path against
the specified parameterless base route.
Returns a object equal to the one that would result by matching the specified URL path against the specified parameterless base route .
A newly-constructed .
A newly - constructed .
basePath
string
The base route to match  against.
The base route to match against .
path
string
The URL path to match.
The URL path to match .
remarks
This method assumes that  is a
valid base URL path, and
is a valid, non-base URL path or route. Otherwise, the behavior of this method
is unspecified.Ensure that you validate both parameters before
calling this method, using either
or .
This method assumes that is a valid base URL path and is a valid non - base URL path or route . Otherwise the behavior of this method is unspecified . Ensure that you validate both parameters before calling this method using either or .