I think just Remove is a better name there

This commit is contained in:
tmenier 2016-05-15 09:16:22 -05:00
parent 8d798aebeb
commit 1e9186efb7
2 changed files with 4 additions and 4 deletions

View File

@ -51,7 +51,7 @@ namespace Flurl
/// Removes all parameters of the given name.
/// </summary>
/// <returns>The number of parameters that were removed</returns>
public int RemoveAll(string name) {
public int Remove(string name) {
return this.RemoveAll(p => p.Name == name);
}

View File

@ -214,7 +214,7 @@ namespace Flurl
/// <param name="name">Query string parameter name to remove</param>
/// <returns>The Url object with the query parameter removed</returns>
public Url RemoveQueryParam(string name) {
QueryParams.RemoveAll(name);
QueryParams.Remove(name);
return this;
}
@ -225,7 +225,7 @@ namespace Flurl
/// <returns>The Url object with the query parameters removed</returns>
public Url RemoveQueryParams(params string[] names) {
foreach(var name in names)
QueryParams.RemoveAll(name);
QueryParams.Remove(name);
return this;
}
@ -236,7 +236,7 @@ namespace Flurl
/// <returns>The Url object with the query parameters removed</returns>
public Url RemoveQueryParams(IEnumerable<string> names) {
foreach(var name in names)
QueryParams.RemoveAll(name);
QueryParams.Remove(name);
return this;
}