From 1622aa04db066dd632a39f036d3e8d27df3494ce Mon Sep 17 00:00:00 2001 From: tmenier Date: Tue, 1 Apr 2014 09:32:18 -0500 Subject: [PATCH] Fixed a couple naming inconsistencies in string extensions --- Flurl/StringExtensions.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Flurl/StringExtensions.cs b/Flurl/StringExtensions.cs index a2bced8..8f832be 100644 --- a/Flurl/StringExtensions.cs +++ b/Flurl/StringExtensions.cs @@ -53,7 +53,7 @@ namespace Flurl /// name of query string parameter /// value of query string parameter /// The Url obect with the query string parameter added - public static Url AddQueryParam(this string url, string name, object value) { + public static Url SetQueryParam(this string url, string name, object value) { return new Url(url).SetQueryParam(name, value); } @@ -63,7 +63,7 @@ namespace Flurl /// /// Typically an anonymous object, ie: new { x = 1, y = 2 } /// The Url object with the query string parameters added - public static Url AddQueryParams(this string url, object values) { + public static Url SetQueryParams(this string url, object values) { return new Url(url).SetQueryParams(values); } @@ -73,7 +73,7 @@ namespace Flurl /// /// Dictionary of key/value pairs to add to the query string /// The Url object with the query string parameters added - public static Url AddQueryParams(this string url, IDictionary values) { + public static Url SetQueryParams(this string url, IDictionary values) { return new Url(url).SetQueryParams(values); }