Remove ListHelper extensions

This commit is contained in:
Bond_009
2020-05-01 16:48:33 +02:00
parent 9265b422f7
commit 7659a2ab32
7 changed files with 33 additions and 56 deletions

View File

@@ -1,27 +0,0 @@
#pragma warning disable CS1591
using System;
namespace MediaBrowser.Model.Extensions
{
// TODO: @bond remove
public static class ListHelper
{
public static bool ContainsIgnoreCase(string[] list, string value)
{
if (value == null)
{
throw new ArgumentNullException(nameof(value));
}
foreach (var item in list)
{
if (string.Equals(item, value, StringComparison.OrdinalIgnoreCase))
{
return true;
}
}
return false;
}
}
}