You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
660 B
29 lines
660 B
#pragma warning disable CS1591
|
|
#pragma warning disable SA1600
|
|
|
|
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;
|
|
}
|
|
}
|
|
}
|