Example #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 RemoveQueryParameter(this Uri uri, string key) {
            var builder = new UriBuilder(uri);
            builder.RemoveQueryParameter(key);

            return builder.Uri;
        }