jellyfin-server/MediaBrowser.Model/Extensions/ListHelper.cs

20 lines
454 B
C#
Raw Normal View History

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
{
public static bool ContainsIgnoreCase(List<string> list, string value)
{
if (value == null)
{
throw new ArgumentNullException("value");
}
return list.Contains(value, StringComparer.OrdinalIgnoreCase);
}
}
}