diff options
| author | Shadowghost <Ghost_of_Stone@web.de> | 2022-07-20 14:29:30 +0200 |
|---|---|---|
| committer | Shadowghost <Ghost_of_Stone@web.de> | 2022-07-20 14:29:30 +0200 |
| commit | 2281b8c997dff0fa148bf0f193b37664420aca3e (patch) | |
| tree | 1f650a3bfe9ed13c11831e1226d8f36bd042a5f3 /MediaBrowser.Common/Net/NetworkExtensions.cs | |
| parent | a492082f4e015d6d38368c4ac05d39d236387214 (diff) | |
Move away from using Collection, simplify code, add proper ordering
Diffstat (limited to 'MediaBrowser.Common/Net/NetworkExtensions.cs')
| -rw-r--r-- | MediaBrowser.Common/Net/NetworkExtensions.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/MediaBrowser.Common/Net/NetworkExtensions.cs b/MediaBrowser.Common/Net/NetworkExtensions.cs index ae1e47ccc..316c2ebcd 100644 --- a/MediaBrowser.Common/Net/NetworkExtensions.cs +++ b/MediaBrowser.Common/Net/NetworkExtensions.cs @@ -1,6 +1,6 @@ using Microsoft.AspNetCore.HttpOverrides; using System; -using System.Collections.ObjectModel; +using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Net; using System.Net.Sockets; @@ -148,9 +148,9 @@ namespace MediaBrowser.Common.Net /// <param name="result">Collection of <see cref="IPNetwork"/>.</param> /// <param name="negated">Boolean signaling if negated or not negated values should be parsed.</param> /// <returns><c>True</c> if parsing was successful.</returns> - public static bool TryParseSubnets(string[] values, out Collection<IPNetwork> result, bool negated = false) + public static bool TryParseSubnets(string[] values, out List<IPNetwork> result, bool negated = false) { - result = new Collection<IPNetwork>(); + result = new List<IPNetwork>(); if (values == null || values.Length == 0) { |
