Ejemplo n.º 1
0
        /// <summary>
        /// Sets the specified query parameter key-value pair of the URI.
        /// If the key already exists, the value is overwritten.
        /// </summary>
        public static Uri AddOrUpdateQueryParameter(this Uri uri, string key, string value)
        {
            var builder = new UriBuilder(uri);

            builder.AddOrUpdateQueryParameter(key, value);

            return(builder.Uri);
        }