TunnelVisionLabs.Net.UriTemplate/UriTemplate.cs
/// <summary>
/// Creates a new URI from the template and the collection of parameters.
/// </summary>
/// <typeparam name="T">The type of parameter value provided in <paramref name="parameters"/>.</typeparam>
/// <param name="parameters">The parameter values.</param>
/// <returns>A <see cref="Uri"/> object representing the expanded template.</returns>
/// <exception cref="ArgumentNullException">If <paramref name="parameters"/> is <see langword="null"/>.</exception>
/// <exception cref="InvalidOperationException">If a variable reference with a prefix modifier expands to a collection or dictionary.</exception>
Creates a new URI from the template and the collection of parameters.
Creates a new URI from the template and the collection of parameters .
public Uri BindByName<T>(IDictionary<string, T> parameters)
        {
            if (parameters == null)
                throw new ArgumentNullException("parameters");
            StringBuilder builder = new StringBuilder();
            foreach (UriTemplatePart part in _parts)
                part.Render(builder, parameters);
            return new Uri(builder.ToString(), UriKind.RelativeOrAbsolute);
        }
public Uri BindByName < T > ( IDictionary < string , T > parameters ) { if ( parameters == null ) throw new ArgumentNullException ( " " ) ; StringBuilder builder = new StringBuilder ( ) ; foreach ( UriTemplatePart part in _parts ) part . Render ( builder , parameters ) ; return new Uri ( builder . ToString ( ) , UriKind . RelativeOrAbsolute ) ; }
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 .
If is .
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 .
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 .