/// <summary> /// Applies the query string to this builder, overwriting any existing query. /// </summary> /// <param name="this">The builder.</param> /// <param name="values">The query values to encode.</param> public static T WithQueryValues <T>(this IBuilderWithQuery <T> @this, IEnumerable <KeyValuePair <string, string> > values) => @this.WithQuery(Util.FormUrlEncode(values));
/// <summary> /// Applies the query string to this builder, overwriting any existing query. /// </summary> /// <param name="this">The builder.</param> /// <param name="values">The query values to encode.</param> public static T WithQueryValues <T>(this IBuilderWithQuery <T> @this, IEnumerable <KeyValuePair <string, string> > values) { _ = @this ?? throw new ArgumentNullException(nameof(@this)); return(@this.WithQuery(Utility.FormUrlEncode(values))); }