aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Services/HttpUtility.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Model/Services/HttpUtility.cs')
-rw-r--r--MediaBrowser.Model/Services/HttpUtility.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/MediaBrowser.Model/Services/HttpUtility.cs b/MediaBrowser.Model/Services/HttpUtility.cs
index f8fd96801..aed0ef1b0 100644
--- a/MediaBrowser.Model/Services/HttpUtility.cs
+++ b/MediaBrowser.Model/Services/HttpUtility.cs
@@ -670,7 +670,7 @@ namespace MediaBrowser.Model.Services
public static string HtmlDecode(string s)
{
if (s == null)
- throw new ArgumentNullException("s");
+ throw new ArgumentNullException(nameof(s));
if (s.IndexOf('&') == -1)
return s;
@@ -791,7 +791,7 @@ namespace MediaBrowser.Model.Services
break;
}
- if (Char.IsDigit(c))
+ if (char.IsDigit(c))
{
if (digit_start == 0)
digit_start = i;
@@ -845,9 +845,9 @@ namespace MediaBrowser.Model.Services
public static QueryParamCollection ParseQueryString(string query, Encoding encoding)
{
if (query == null)
- throw new ArgumentNullException("query");
+ throw new ArgumentNullException(nameof(query));
if (encoding == null)
- throw new ArgumentNullException("encoding");
+ throw new ArgumentNullException(nameof(encoding));
if (query.Length == 0 || (query.Length == 1 && query[0] == '?'))
return new QueryParamCollection();
if (query[0] == '?')