aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Services
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Model/Services')
-rw-r--r--MediaBrowser.Model/Services/HttpUtility.cs8
-rw-r--r--MediaBrowser.Model/Services/QueryParamCollection.cs8
2 files changed, 8 insertions, 8 deletions
diff --git a/MediaBrowser.Model/Services/HttpUtility.cs b/MediaBrowser.Model/Services/HttpUtility.cs
index cafb9c3b2..1bf3b28d1 100644
--- a/MediaBrowser.Model/Services/HttpUtility.cs
+++ b/MediaBrowser.Model/Services/HttpUtility.cs
@@ -440,7 +440,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;
@@ -561,7 +561,7 @@ namespace MediaBrowser.Model.Services
break;
}
- if (Char.IsDigit(c))
+ if (char.IsDigit(c))
{
if (digit_start == 0)
digit_start = i;
@@ -615,9 +615,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] == '?')
diff --git a/MediaBrowser.Model/Services/QueryParamCollection.cs b/MediaBrowser.Model/Services/QueryParamCollection.cs
index 4dd4303a8..05ba6f18d 100644
--- a/MediaBrowser.Model/Services/QueryParamCollection.cs
+++ b/MediaBrowser.Model/Services/QueryParamCollection.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using System.Collections.Generic;
using System.Linq;
using MediaBrowser.Model.Dto;
@@ -20,12 +20,12 @@ namespace MediaBrowser.Model.Services
}
}
- private StringComparison GetStringComparison()
+ private static StringComparison GetStringComparison()
{
return StringComparison.OrdinalIgnoreCase;
}
- private StringComparer GetStringComparer()
+ private static StringComparer GetStringComparer()
{
return StringComparer.OrdinalIgnoreCase;
}
@@ -218,7 +218,7 @@ namespace MediaBrowser.Model.Services
return pair.Name + "=" + pair.Value;
}
- public override String ToString()
+ public override string ToString()
{
var vals = this.Select(GetQueryStringValue).ToArray();