TunnelVisionLabs.Net.UriTemplate/UriTemplate.cs
/// <summary>
/// Creates a new URI from the template and the collection of parameters. The URI formed
/// by the expanded template is resolved against <paramref name="baseAddress"/> to produce
/// an absolute URI.
/// </summary>
/// <typeparam name="T">The type of parameter value provided in <paramref name="parameters"/>.</typeparam>
/// <param name="baseAddress">The base address of the URI.</param>
/// <param name="parameters">The parameter values.</param>
/// <returns>A <see cref="Uri"/> object representing the expanded template.</returns>
/// <exception cref="ArgumentNullException">
/// <para>If <paramref name="baseAddress"/> is <see langword="null"/>.</para>
/// <para>-or-</para>
/// <para>If <paramref name="parameters"/> is <see langword="null"/>.</para>
/// </exception>
/// <exception cref="ArgumentException"><para>If <paramref name="baseAddress"/> is not an absolute URI.</para></exception>
/// <exception cref="InvalidOperationException"><para>If a variable reference with a prefix modifier expands to a collection or dictionary.</para></exception>
Creates a new URI from the template and the collection of parameters. The URI formed
by the expanded template is resolved against  to produce
an absolute URI.
Creates a new URI from the template and the collection of parameters . The URI formed by the expanded template is resolved against to produce an absolute URI .
public Uri BindByName<T>(Uri baseAddress, IDictionary<string, T> parameters)
        {
            if (baseAddress == null)
                throw new ArgumentNullException("baseAddress");
            if (parameters == null)
                throw new ArgumentNullException("parameters");
            if (!baseAddress.IsAbsoluteUri)
                throw new ArgumentException("baseAddress must be an absolute URI", "baseAddress");
            return new Uri(baseAddress, BindByName(parameters));
        }
public Uri BindByName < T > ( Uri baseAddress , IDictionary < string , T > parameters ) { if ( baseAddress == null ) throw new ArgumentNullException ( " " ) ; if ( parameters == null ) throw new ArgumentNullException ( " " ) ; if ( ! baseAddress . IsAbsoluteUri ) throw new ArgumentException ( " " , " " ) ; return new Uri ( baseAddress , BindByName ( parameters ) ) ; }
Creates a new URI from the template and the collection of parameters.
Creates a new URI from the template and the collection of parameters .
A  object representing the expanded template.
A object representing the expanded template .
If  is .-or-If  is .
If is . - or - If is .
If  is not an absolute URI.
If is not an absolute URI .
If a variable reference with a prefix modifier expands to a collection or dictionary.
If a variable reference with a prefix modifier expands to a collection or dictionary .
baseAddress
Uri
The base address of the URI.
The base address of the URI .
parameters
IDictionary<string, T>
The parameter values.
The parameter values .
typeparam
The type of parameter value provided in .
The type of parameter value provided in .