2014-06-05 02:32:40 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Model.Extensions
|
|
|
|
|
{
|
|
|
|
|
public static class ListHelper
|
|
|
|
|
{
|
2014-06-23 16:05:19 +00:00
|
|
|
|
public static bool ContainsIgnoreCase(IEnumerable<string> list, string value)
|
2014-06-05 02:32:40 +00:00
|
|
|
|
{
|
|
|
|
|
if (value == null)
|
|
|
|
|
{
|
|
|
|
|
throw new ArgumentNullException("value");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return list.Contains(value, StringComparer.OrdinalIgnoreCase);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|