Files
jellyfin-jellyfin-1/MediaBrowser.Model/Extensions/ListHelper.cs

20 lines
461 B
C#
Raw Normal View History

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