TunnelVisionLabs.Net.UriTemplate/UriTemplate.cs
/// <summary>
/// Attempts to match a <see cref="Uri"/> to a <see cref="UriTemplate"/>.
/// </summary>
/// <param name="baseAddress">The base address.</param>
/// <param name="candidate">The <see cref="Uri"/> to match against the template.</param>
/// <returns>A <see cref="UriTemplateMatch"/> object containing the results of the match operation, or <see langword="null"/> if the match failed.</returns>
/// <exception cref="ArgumentNullException">
/// <para>If <paramref name="baseAddress"/> is <see langword="null"/>.</para>
/// <para>-or-</para>
/// <para>If <paramref name="candidate"/> is <see langword="null"/>.</para>
/// </exception>
/// <exception cref="InvalidOperationException">
/// <para>If <paramref name="baseAddress"/> is a relative URI.</para>
/// <para>-or-</para>
/// <para>If <paramref name="candidate"/> is a relative URI.</para>
/// </exception>
Attempts to match a  to a .
Attempts to match a to a .
public UriTemplateMatch Match(Uri baseAddress, Uri candidate)
        {
            if (baseAddress == null)
                throw new ArgumentNullException("baseAddress");
            if (candidate == null)
                throw new ArgumentNullException("candidate");
            Uri relative = baseAddress.MakeRelativeUri(candidate);
            return Match(relative);
        }
public UriTemplateMatch Match ( Uri baseAddress , Uri candidate ) { if ( baseAddress == null ) throw new ArgumentNullException ( " " ) ; if ( candidate == null ) throw new ArgumentNullException ( " " ) ; Uri relative = baseAddress . MakeRelativeUri ( candidate ) ; return Match ( relative ) ; }
Attempts to match a  to a .
Attempts to match a to a .
A  object containing the results of the match operation, or  if the match failed.
A object containing the results of the match operation or if the match failed .
If  is .-or-If  is .
If is . - or - If is .
If  is a relative URI.-or-If  is a relative URI.
If is a relative URI . - or - If is a relative URI .
baseAddress
Uri
The base address.
The base address .
candidate
Uri
The  to match against the template.
The to match against the template .